Class CountryData
Complete country data combining hot and cold data Used for runtime access with performance considerations
[Serializable]
public class CountryData
- Inheritance
-
objectCountryData
Constructors
CountryData()
public CountryData()
CountryData(CountryHotData, CountryColdData)
public CountryData(CountryHotData hot, CountryColdData cold)
Parameters
hotCountryHotDatacoldCountryColdData
Fields
coldData
public CountryColdData coldData
Field Value
hotData
public CountryHotData hotData
Field Value
Properties
Color
public Color32 Color { get; }
Property Value
DisplayName
public string DisplayName { get; }
Property Value
- string
GraphicalCultureId
public byte GraphicalCultureId { get; }
Property Value
- byte
Tag
public string Tag { get; }
Property Value
- string
Methods
CreateHotData(CountryColdData, byte, byte)
Create hot data from cold data for performance optimization
public static CountryHotData CreateHotData(CountryColdData coldData, byte graphicalCultureId, byte flags = 0)
Parameters
coldDataCountryColdDatagraphicalCultureIdbyteflagsbyte
Returns
ToString()
public override string ToString()
Returns
- string
Validate(out List<string>)
Validate that the country data is consistent and complete
public bool Validate(out List<string> validationErrors)
Parameters
validationErrorsList<string>
Returns
- bool