i just added a main_specialty getter and setter to UnitUiModuleWrapper, but this would be a bit quicker to reference if it were on UnitWrapper - and, there, it could set several other things, such as the AcknowUnitType, TypeUnitFormation, MenuIconTexture, Factory, &c.
Instead of a property, this should probably be a method with several arguments to set each of the above; there should also be some defaults defined in mw2.constants, at least one for each PrimarySpecialty.
i just added a
main_specialty
getter and setter toUnitUiModuleWrapper
, but this would be a bit quicker to reference if it were onUnitWrapper
- and, there, it could set several other things, such as theAcknowUnitType
,TypeUnitFormation
,MenuIconTexture
,Factory
, &c.Instead of a property, this should probably be a method with several arguments to set each of the above; there should also be some defaults defined in
mw2.constants
, at least one for eachPrimarySpecialty
.