dninemfive / wn-9id

WARNO mod implementing the 9th Infantry Division (Motorized).
Other
0 stars 0 forks source link

`UnitWrapper.main_specialty` #29

Open dninemfive opened 14 hours ago

dninemfive commented 14 hours ago

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.