Collecting information at game start and saving it permanently

Joined
Jun 27, 2007
Messages
2,248
Location
Hamilton, Ontario
I want to count the features on the map at start of the game and keep that information to use it for the rest of the game. So how do I write something to happen at the start of the game (after the map is generated) and save that information to be used later?
 
You can add fields to the CvGame or CvMap object and have then written/read in the write()/read() functions. CvMap seems like a good place for them, but either would be fine.
 
Back
Top Bottom