dninemfive / wn-9id

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

Unit creation decorator #3

Closed dninemfive closed 16 hours ago

dninemfive commented 1 month ago

The format of unit creation is pretty standard - a method takes a UnitCreationContext, creates a unit using that context, modifies its modules, and then returns a UnitInfo describing the unit's availability. A lot of this functionality could be placed into a decorator to simplify this.

dninemfive commented 16 hours ago

Not implemented as a decorator, but the current system is sufficiently clean that this is no longer a goal.