Ejemplo n.º 1
0
        public LoadScreenViewModel(StartAppViewModel mainWindowVM = null, string fighter_num = null)
        {
            _mainwindowVM    = mainWindowVM;
            PlayerList       = new ObservableCollection <PlayerModel>();
            SelectedPlayer   = new PlayerModel();
            this.fighter_num = fighter_num;
            ControlsView     = new ControlPanelViewModel(this, SelectedPlayer, "View");
            Load_players();

            View = new LoadScreenView(this);
        }
Ejemplo n.º 2
0
        public FighterViewModel(PlayerModel selectedplayer = null)
        {
            if (selectedplayer == null)
            {
                selectedplayer = new PlayerModel();
            }
            ControlPanel  = new ControlPanelViewModel(player: selectedplayer, cp_mode: "Interactive");
            Name          = selectedplayer.Name;
            Fighter       = selectedplayer;
            FighterCombat = selectedplayer.Combat;
            WeaponTypeModel.setOptions(selectedplayer.Combat, selectedplayer.Equiped.Weapon.WeaponType);
            setupFighter();

            View = new FighterView(this);
        }