Creates a unit based on an existing unit ID. Import ObjectIdGenerator and UnitIds for this example:
@compiletime function createMyUnit()
new UnitDefinition(UNIT_ID_GEN.next(), UnitIds.footman)
..setName("My Footman")
Re-exports: TargetsAllowed, ObjEditingCommons