private void LoadHouses()
{
Logger.Info("Loading houses");
IniFile.IniSection housesSection = _rules.GetOrCreateSection("Houses");
foreach (var v in housesSection.OrderedEntries) {
var houseSection = _rules.GetSection(v.Value);
if (houseSection == null) continue;
string color;
if (v.Value == "Neutral" || v.Value == "Special")
color = "LightGrey"; // this is hardcoded in the game
else
color = houseSection.ReadString("Color");
if (!string.IsNullOrEmpty(color) && !string.IsNullOrEmpty(v.Value)) {
if (_namedColors.ContainsKey(color))
_countryColors[v.Value] = _namedColors[color];
else
_countryColors[v.Value] = _namedColors["LightGrey"];
}
}
}