Kiva-Entertainment / yohk

SRPG game made with Blender, with scripts in Python
Other
9 stars 0 forks source link

unitData is stored without id # - All units use same blender-object #14

Closed KaiGeffen closed 10 years ago

KaiGeffen commented 10 years ago

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.

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.

KaiGeffen commented 10 years ago

Resolved by #20