Struct SaveMetadata
Fixed-size metadata header for fast save browser preview. Written at a fixed position in the save file so it can be read without deserializing the entire file. Total size: 256 bytes.
public struct SaveMetadata
Fields
SIZE
Fixed size of the metadata block in bytes
public const int SIZE = 256
Field Value
- int
compressedPayloadSize
public int compressedPayloadSize
Field Value
- int
countryCount
public int countryCount
Field Value
- int
currentTick
public ulong currentTick
Field Value
- ulong
flags
public int flags
Field Value
- int
gameSpeed
public int gameSpeed
Field Value
- int
gameVersion
public string gameVersion
Field Value
- string
provinceCount
public int provinceCount
Field Value
- int
saveDateTicks
public long saveDateTicks
Field Value
- long
saveFormatVersion
public int saveFormatVersion
Field Value
- int
saveName
public string saveName
Field Value
- string
scenarioName
public string scenarioName
Field Value
- string
Properties
IsCompressed
public bool IsCompressed { get; }
Property Value
- bool
SaveDate
public DateTime SaveDate { get; }
Property Value
- DateTime
Methods
ReadFrom(BinaryReader)
Read metadata from exactly SIZE bytes.
public static SaveMetadata ReadFrom(BinaryReader reader)
Parameters
readerBinaryReader
Returns
WriteTo(BinaryWriter)
Write metadata as exactly SIZE bytes. Strings are truncated/padded to their fixed allocation.
public void WriteTo(BinaryWriter writer)
Parameters
writerBinaryWriter