CNCMaps.Engine.Map.Map.LoadCountries C# (CSharp) Method

LoadCountries() private method

Loads the countries.
private LoadCountries ( ) : void
return void
        private void LoadCountries()
        {
            Logger.Info("Loading countries");

            var countriesSection = _rules.GetSection(Engine >= EngineType.RedAlert2 ? "Countries" : "Houses");
            foreach (var entry in countriesSection.OrderedEntries) {
                IniFile.IniSection countrySection = _rules.GetSection(entry.Value);
                if (countrySection == null) continue;
                Color c;
                if (!_namedColors.TryGetValue(countrySection.ReadString("Color"), out c))
                    c = _namedColors.Values.First();
                _countryColors[entry.Value] = c;
            }
        }