UnitVars

From emergent
Jump to: navigation, search
Reference info for type UnitVars: Wiki | Emergent Help Browser

This is a bare pure-memory container class (introduced in version 8.0) used to hold the variables for Units -- they are allocated on a per-thread basis to optimize processing, and stored in memory blocks located in the Network object, at thrs_units_mem -- the Build process allocates them.

There are methods on the Unit to access the variables -- so prior to version 8.0 you could access variables such as act directly from the unit, you now need to type the variable name with parens ().