Open jesterstud opened 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.
Soo.. our super class will be StorableObject. This is the low level object that can be serialized. then...
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.