Exemple #1
0
 private void InitBuildingInfluences()
 {
     foreach (BuildingInfluenceType curInfluenceType in Enum.GetValues(typeof(BuildingInfluenceType)))
     {
         BuildingInfluences.Add(new BuildingInfluence
         {
             Name = _localizationHelper.GetLocalization(curInfluenceType.ToString()),
             Type = curInfluenceType
         });
     }
 }
 private void InitBuildingInfluences()
 {
     foreach (BuildingInfluenceType curInfluenceType in Enum.GetValues(typeof(BuildingInfluenceType)))
     {
         BuildingInfluences.Add(new BuildingInfluence
         {
             Name = Localization.Localization.Translations[curInfluenceType.ToString()],
             Type = curInfluenceType
         });
     }
 }
Exemple #3
0
        private void InitBuildingInfluences()
        {
            string language = Localization.Localization.GetLanguageCodeFromName(_commons.SelectedLanguage);

            foreach (BuildingInfluenceType curInfluenceType in Enum.GetValues(typeof(BuildingInfluenceType)))
            {
                BuildingInfluences.Add(new BuildingInfluence
                {
                    Name = Localization.Localization.Translations[language][curInfluenceType.ToString()],
                    Type = curInfluenceType
                });
            }
        }