Barthap
Member
|
Save and load question
Can I save my data in esenthel after engine save?
I mean that i want engine to save/load characters and other objects and then call my Save/Load function
Not before
Saving/Loading sequence:
1.World ObjTypes: Players, Items, Chrs, Statics
2.Other classes defined in mySaveFunction
if(Kb.bp(KB_F2)) Game::World.save("Saves/quicksave.sav", mySaveFunction);
We need it because other Classes defined in mySaveFunction use variables loaded in Player or Item class and if customClass loads, player is not loaded, game crashes.
|
|
05-10-2010 05:38 PM |
|
Esenthel
Administrator
|
RE: Save and load question
the custom data is located after game world data, but the objects aren't created until Game::World.update is called (only after update the obejcts get loaded from save)
|
|
05-10-2010 05:52 PM |
|