Class CountryColdData
Cold data for countries - loaded on-demand, stored separately. Contains detailed information not needed for core simulation.
ENGINE layer - generic country data only. Game-specific data should be stored in customData dictionary.
[Serializable]
public class CountryColdData
- Inheritance
-
objectCountryColdData
Constructors
CountryColdData()
public CountryColdData()
Fields
color
public Color32 color
Field Value
customData
public Dictionary<string, object> customData
Field Value
- Dictionary<string, object>
displayName
public string displayName
Field Value
- string
graphicalCulture
public string graphicalCulture
Field Value
- string
hasParseErrors
public bool hasParseErrors
Field Value
- bool
lastParsed
public DateTime lastParsed
Field Value
- DateTime
parseErrors
public List<string> parseErrors
Field Value
- List<string>
parseTimeMs
public int parseTimeMs
Field Value
- int
tag
public string tag
Field Value
- string
Methods
GetCustomData<T>(string, T)
Get custom data with type safety
public T GetCustomData<T>(string key, T defaultValue = default)
Parameters
keystringdefaultValueT
Returns
- T
Type Parameters
T
GetMemoryUsage()
Calculate memory usage of this cold data instance
public long GetMemoryUsage()
Returns
- long
SetCustomData(string, object)
Set custom data
public void SetCustomData(string key, object value)
Parameters
keystringvalueobject