public CultureItemVM(CultureObject value, ref MBBindingList <CultureItemVM> cultureItemList, ref CultureChangerProperties cultureChangerProperties) { this._item = value; this._is_selected = false; this._cultureChangerProperties = cultureChangerProperties; this._cultureItemList = cultureItemList; }
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)); } } }
public static void game_menu_change_culture_on_consequence(MenuCallbackArgs args) { CultureChangerProperties properties = new CultureChangerProperties(Settlement.CurrentSettlement.StringId); ScreenManager.PushScreen(new CultureChangerScreen(ref properties)); }
public CultureChangerScreen(ref CultureChangerProperties cultureChangerProperties) { this._cultureChangerProperties = cultureChangerProperties; }