Beispiel #1
0
 public TreasureDefenseGameCommandEditorWindowViewModel(TreasureDefenseGameCommandModel command)
     : base(command)
 {
     this.MinimumParticipants     = command.MinimumParticipants;
     this.TimeLimit               = command.TimeLimit;
     this.KingTimeLimit           = command.KingTimeLimit;
     this.ThiefPlayerPercentage   = command.ThiefPlayerPercentage;
     this.StartedCommand          = command.StartedCommand;
     this.UserJoinCommand         = command.UserJoinCommand;
     this.NotEnoughPlayersCommand = command.NotEnoughPlayersCommand;
     this.KnightUserCommand       = command.KnightUserCommand;
     this.ThiefUserCommand        = command.ThiefUserCommand;
     this.KingUserCommand         = command.KingUserCommand;
     this.KnightSelectedCommand   = command.KnightSelectedCommand;
     this.ThiefSelectedCommand    = command.ThiefSelectedCommand;
 }
Beispiel #2
0
        public override async Task UpdateExistingCommand(CommandModelBase command)
        {
            await base.UpdateExistingCommand(command);

            TreasureDefenseGameCommandModel gCommand = (TreasureDefenseGameCommandModel)command;

            gCommand.MinimumParticipants     = this.MinimumParticipants;
            gCommand.TimeLimit               = this.TimeLimit;
            gCommand.KingTimeLimit           = this.KingTimeLimit;
            gCommand.ThiefPlayerPercentage   = this.ThiefPlayerPercentage;
            gCommand.StartedCommand          = this.StartedCommand;
            gCommand.UserJoinCommand         = this.UserJoinCommand;
            gCommand.NotEnoughPlayersCommand = this.NotEnoughPlayersCommand;
            gCommand.KnightUserCommand       = this.KnightUserCommand;
            gCommand.ThiefUserCommand        = this.ThiefUserCommand;
            gCommand.KingUserCommand         = this.KingUserCommand;
            gCommand.KnightSelectedCommand   = this.KnightSelectedCommand;
            gCommand.ThiefSelectedCommand    = this.ThiefSelectedCommand;
        }