Struct CountryHotData
Country data following dual-layer architecture principles Hot data: Frequently accessed, performance-critical (8 bytes) Cold data: Rarely accessed, can be loaded on-demand
ENGINE layer - generic country data only. Game-specific data should be stored via customData dictionary in CountryColdData.
[Serializable]
public struct CountryHotData
Fields
colorRGBA
public uint colorRGBA
Field Value
- uint
flags
public byte flags
Field Value
- byte
graphicalCultureId
public byte graphicalCultureId
Field Value
- byte
tagHash
public ushort tagHash
Field Value
- ushort
Properties
Color
Convert packed RGBA color to Color32 for rendering
public Color32 Color { get; }
Property Value
Methods
GetFlag(int)
public bool GetFlag(int index)
Parameters
indexint
Returns
- bool
SetColor(Color32)
Set color from Color32
public void SetColor(Color32 color)
Parameters
colorColor32
SetFlag(int, bool)
public void SetFlag(int index, bool value)
Parameters
indexintvaluebool