public HitmanGameCommandEditorWindowViewModel(HitmanGameCommandModel command) : base(command) { this.MinimumParticipants = command.MinimumParticipants; this.TimeLimit = command.TimeLimit; this.HitmanTimeLimit = command.HitmanTimeLimit; this.CustomWordsFilePath = command.CustomWordsFilePath; this.StartedCommand = command.StartedCommand; this.UserJoinCommand = command.UserJoinCommand; this.NotEnoughPlayersCommand = command.NotEnoughPlayersCommand; this.HitmanApproachingCommand = command.HitmanApproachingCommand; this.HitmanAppearsCommand = command.HitmanAppearsCommand; this.UserSuccessCommand = command.UserSuccessCommand; this.UserFailureCommand = command.UserFailureCommand; this.SetUICommands(); }
public override async Task UpdateExistingCommand(CommandModelBase command) { await base.UpdateExistingCommand(command); HitmanGameCommandModel gCommand = (HitmanGameCommandModel)command; gCommand.MinimumParticipants = this.MinimumParticipants; gCommand.TimeLimit = this.TimeLimit; gCommand.HitmanTimeLimit = this.HitmanTimeLimit; gCommand.CustomWordsFilePath = this.CustomWordsFilePath; gCommand.StartedCommand = this.StartedCommand; gCommand.UserJoinCommand = this.UserJoinCommand; gCommand.NotEnoughPlayersCommand = this.NotEnoughPlayersCommand; gCommand.HitmanApproachingCommand = this.HitmanApproachingCommand; gCommand.HitmanAppearsCommand = this.HitmanAppearsCommand; gCommand.UserSuccessCommand = this.UserSuccessCommand; gCommand.UserFailureCommand = this.UserFailureCommand; }