Table of Contents

Struct CountryHotData

Namespace
Core.Data
Assembly
Core.dll

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

Color32

Methods

GetFlag(int)

public bool GetFlag(int index)

Parameters

index int

Returns

bool

SetColor(Color32)

Set color from Color32

public void SetColor(Color32 color)

Parameters

color Color32

SetFlag(int, bool)

public void SetFlag(int index, bool value)

Parameters

index int
value bool