SWY1985 / CivOne

An open source implementation of Sid Meier's Civilization.
http://www.civone.org/
Creative Commons Zero v1.0 Universal
244 stars 49 forks source link

Implement new (optional) save game format #266

Open SWY1985 opened 7 years ago

SWY1985 commented 7 years ago

While CivOne will always be able to load and save original Civilization games, there will be an option to turn off compatibility and use a new save game format. This is needed in order to support upcoming expanded features, like:

uHappyLogic commented 7 years ago

Please assign this task to me

SWY1985 commented 7 years ago

@uHappyLogic If you have any ideas on the new save format, can you post them here?

uHappyLogic commented 7 years ago

Json will be new game save base format. New game save mode will be at first optional (enabled in configuration). Every game object which contains state will be serialized/deserialized into json object. This approach requires some changes in existing codebase and will be implemented in few stages. Additionally new mechanism will able to be used by plugins.