subchannel13 / Stareater

4X turn based strategy
GNU General Public License v3.0
32 stars 7 forks source link

Saved game preview #100

Closed subchannel13 closed 7 years ago

subchannel13 commented 7 years ago

When choosing which game to load, each saved game will have a map preview. In case for a single player game the preview will show stars, known starlanes and known occupied territories. Preview for multiplayer game is to be decided.

From technical standpoint save game data should be broken down into multiple chunks. At the moment whole save game is serialized as one object and it should be separated to following parts: version info, preview data and game data. Version info is for future-proofing, for now if a game is saved with incompatible version then the save file will be rejected and later it will help with upgrading lower version saves. Preview data should be view specific data for generating preview, model and controller should not have to work with it beyond passing it to view. Game data is everything needed to load game state and by separating it from preview data it should be possible to not load it while only generating previews.

subchannel13 commented 7 years ago

Hot seat and multiplayer preview will have to wait, image looks overcrowded with star alone. Otherwise done.