Sanguosha.UI.Controls.PlayerViewModel.PlayerViewModel C# (CSharp) Method

PlayerViewModel() public method

public PlayerViewModel ( ) : System
return System
        public PlayerViewModel()
        {
            Hero1Model = new HeroViewModel();
            Hero2Model = new HeroViewModel();

            IsSelectionMode = false;
            AutoInvokeSkillCommands = new ObservableCollection<SkillCommand>();
            ActiveSkillCommands = new ObservableCollection<SkillCommand>();
            RulerGivenSkillCommands = new ObservableCollection<SkillCommand>();

            PrivateDecks = new ObservableCollection<SpecialDeckViewModel>();

            MultiChoiceCommands = new ObservableCollection<ICommand>();

            submitCardUsageCommand = new SimpleRelayCommand(SubmitCardUsageCommand);
            cancelCardUsageCommand = new SimpleRelayCommand(CancelCardUsageCommand);
            abortCardUsageCommand = new SimpleRelayCommand(AbortCardUsageCommand);
            cancelSkillSelectionCommand = new SimpleRelayCommand(CancelSkillSelectionCommand) { CanExecuteStatus = true };

            SubmitAnswerCommand = DisabledCommand;
            CancelAnswerCommand = DisabledCommand;
            AbortAnswerCommand = DisabledCommand;

            _possibleRoles = new ObservableCollection<Role>();
            IsCardChoiceQuestionShown = false;

            Marks = new ObservableCollection<MarkViewModel>();
            StatusMarks = new ObservableCollection<MarkViewModel>();
            HandCards = new ObservableCollection<CardViewModel>();
            _lastSelectedPlayers = new List<Player>();
            _cardsInSwitchMode = new HashSet<CardViewModel>();
        }

Same methods

PlayerViewModel::PlayerViewModel ( Player player, GameViewModel game ) : System