public BattleTypeSelectionGroup(
            BattleTypeConfig config,
            MapSelectionGroupVM mapSelectionGroup,
            Action <bool> onPlayerTypeChange)
        {
            _config             = config;
            _mapSelectionGroup  = mapSelectionGroup;
            _onPlayerTypeChange = onPlayerTypeChange;

            BattleTypeText            = new TextVM(GameTexts.FindText("str_ebt_battle_type"));
            PlayerTypeText            = new TextVM(GameTexts.FindText("str_ebt_player_type"));
            PlayerSideText            = new TextVM(GameTexts.FindText("str_ebt_player_side"));
            EquipmentModifierTypeText = new TextVM(GameTexts.FindText("str_ebt_equipment_modifier_type"));
            RefreshValues();
        }
示例#2
0
 public TroopVM(TeamConfig teamConfig, TroopConfig config, TextObject troopRole, bool isPlayerSide, BattleTypeConfig battleTypeConfig)
 {
     _config                = config;
     CharacterButton        = new CharacterButtonVM(teamConfig, _config.Character, troopRole, isPlayerSide, battleTypeConfig);
     NumberText             = new TextVM(GameTexts.FindText("str_ebt_number"));
     Number                 = new NumberVM <int>(config.Number, 0, 5000, true);
     Number.OnValueChanged += number => config.Number = number;
     InvalidText            = new TextVM(GameTexts.FindText("str_ebt_invalid"));
 }