Example #1
0
 public CultureItemVM(CultureObject value, ref MBBindingList <CultureItemVM> cultureItemList, ref CultureChangerProperties cultureChangerProperties)
 {
     this._item        = value;
     this._is_selected = false;
     this._cultureChangerProperties = cultureChangerProperties;
     this._cultureItemList          = cultureItemList;
 }
Example #2
0
        public CultureChangerViewModel(ref CultureChangerProperties cultureChangerProperties)
        {
            this._cultureChangerProperties = cultureChangerProperties;
            this.Cultures = new MBBindingList <CultureItemVM>();

            var cultures = MBObjectManager.Instance.GetObjectTypeList <CultureObject>();

            foreach (CultureObject element in cultures)
            {
                if (element.IsMainCulture)
                {
                    Cultures.Add(new CultureItemVM(element, ref this._cultureItems, ref this._cultureChangerProperties));
                }
            }
        }
Example #3
0
        public static void game_menu_change_culture_on_consequence(MenuCallbackArgs args)
        {
            CultureChangerProperties properties = new CultureChangerProperties(Settlement.CurrentSettlement.StringId);

            ScreenManager.PushScreen(new CultureChangerScreen(ref properties));
        }
Example #4
0
 public CultureChangerScreen(ref CultureChangerProperties cultureChangerProperties)
 {
     this._cultureChangerProperties = cultureChangerProperties;
 }