CivOne icon indicating copy to clipboard operation
CivOne copied to clipboard

Coding Standard: game load/save code should not exist in various classes

Open fire-eggs opened this issue 4 years ago • 0 comments

Any code related to saving or restoring game state to/from the save file probably should not be in the various implementation classes.

A specific example that came up recently is the "Status" data [with the Settler-specific SetStatus, GetStatus]. These are purely intended for save game state and so should be in Game.LoadSave.cs.

What other properties / methods fit this category?

fire-eggs avatar Oct 01 '21 16:10 fire-eggs