public HeistGameCommandEditorWindowViewModel(HeistGameCommandModel command) : base(command) { this.MinimumParticipants = command.MinimumParticipants; this.TimeLimit = command.TimeLimit; this.StartedCommand = command.StartedCommand; this.UserJoinCommand = command.UserJoinCommand; this.NotEnoughPlayersCommand = command.NotEnoughPlayersCommand; this.UserSuccessOutcome = new GameOutcomeViewModel(command.UserSuccessOutcome); this.userFailureCommand = command.UserFailureCommand; this.AllSucceedCommand = command.AllSucceedCommand; this.TopThirdsSucceedCommand = command.TopThirdsSucceedCommand; this.MiddleThirdsSucceedCommand = command.MiddleThirdsSucceedCommand; this.LowThirdsSucceedCommand = command.LowThirdsSucceedCommand; this.NoneSucceedCommand = command.NoneSucceedCommand; }
public override async Task UpdateExistingCommand(CommandModelBase command) { await base.UpdateExistingCommand(command); HeistGameCommandModel gCommand = (HeistGameCommandModel)command; gCommand.MinimumParticipants = this.MinimumParticipants; gCommand.TimeLimit = this.TimeLimit; gCommand.StartedCommand = this.StartedCommand; gCommand.UserJoinCommand = this.UserJoinCommand; gCommand.NotEnoughPlayersCommand = this.NotEnoughPlayersCommand; gCommand.UserSuccessOutcome = this.UserSuccessOutcome.GetModel(); gCommand.UserFailureCommand = this.UserFailureCommand; gCommand.AllSucceedCommand = this.AllSucceedCommand; gCommand.TopThirdsSucceedCommand = this.TopThirdsSucceedCommand; gCommand.MiddleThirdsSucceedCommand = this.MiddleThirdsSucceedCommand; gCommand.LowThirdsSucceedCommand = this.LowThirdsSucceedCommand; gCommand.NoneSucceedCommand = this.NoneSucceedCommand; }