This issue must be resolved to proceed with object adding/units deploying from base
Currently units are stored as:
[1 : {unitData1},
2 : {unitData2}]
They should be stored without the id number:
[{unitData1},
{unitData2}]
All getting of unitData happens in script unitControl and is based on position anyways.
However, much of the code uses unitNumber instead of altering the unitData itself (Which is unnecessary if reference to unitData is maintained). That has to change.
[x] Scripts all unitData directly instead of digging through globalDictionary again.
Also, the id linked the unit to its blender-object, and multiple identical blender objects with different names (0,1,2,3, etc.) had to exist.
Instead, only 1 unit object should exist.
This issue must be resolved to proceed with object adding/units deploying from base
Currently units are stored as:
They should be stored without the id number:
All getting of unitData happens in script unitControl and is based on position anyways. However, much of the code uses unitNumber instead of altering the unitData itself (Which is unnecessary if reference to unitData is maintained). That has to change.
Also, the id linked the unit to its blender-object, and multiple identical blender objects with different names (0,1,2,3, etc.) had to exist. Instead, only 1 unit object should exist.