Form: unit-type
symbol properties...
This form defines a new type of unit. The symbol is required and must be previously undefined. The bindings in properties are then added to the type one by one. If no other name properties are defined, the symbol may be displayed to players (see above). You can define no more than 126 types of units.
The symbol here becomes the unit type's "internal type name"
which is guaranteed unique.
To make synonyms for the internal type name, use define
.
GlobalVariable: u*
This variable evaluates to a list of all unit types, listed in the order that they were defined. This list always reflects the list of types at the moment it is evaluated.
GlobalVariable: non-unit
This variable [constant?] evaluates to a value that is NOT a unit type. This is needed in several places to enable/disable features. Use of this in any other way is an error, and may or may not be detected before it causes a crash.