TwoClunkers / Clunk-Genesis

Difficult to contain...
0 stars 1 forks source link

Design Doc: world items class - "Thingies" #18

Open jesterstud opened 9 years ago

jesterstud commented 9 years ago

Aside from an adequate name (NOT "props"), the Class for world items needs to be better defined in order to plan serialization.

Right now, "Pickup Blocks" are the only world item, aside from the "laser 'nade", and are not serialized.

jesterstud commented 9 years ago

Currently, a pickup block is created only with a material passed. It also has a quantity that is used to facilitate stacking. If we were to re-create the instance, we would also need the position and rotation. As other world items will certainly have other variables, perhaps we need to think about a serializable class that all our other classes can derive from. That way it just organizes the world objects, which will serialize and de-serialize themselves.

RossMcConeghy commented 9 years ago

Soo.. our super class will be StorableObject. This is the low level object that can be serialized. then...

RossMcConeghy commented 9 years ago

https://github.com/TwoClunkers/Clunk-Genesis/wiki/Items