What civ can see vs what is there
Opened this issue · 2 comments
I've recently added a structure to a Tile that records what a civ can see in terms of improvements vs what is actually there, is this information stored in the sav file? We should probably load it, I'm going to rework the map rendering so each civ's map show what they know rather than the actual game state
To Tile class I've added visibility data of tiles, tile improvements and units for each civ. This is basically what each civ sees. Each of these properties is bool[8] (the data for index 0=barbs is not read, so it's always false).
The City class also now has two properties:
WhoKnowsAboutItshows which civs have knowledge of this city's existenceLastSizeRevealedToCivsshows city size that each civ sees for this city
Also for .sav file two different parameter types are read - e.g. MapIrrigationVisible is what each civ sees and MapIrrigationPresent is what is actually there.
I've additionally read secondary maps data in the latest commit, which is necessary since TOT can have 4 maps and each unit/city/tile should have a mapIndex (which is always 0 for MGE and can be 0...3 for TOT).
I tried mapping those fields in the interface but I got nothing, will check with a better sav when I have access to windows next