#pragma warning disable CS0612 // Type or member is obsolete internal GameCommandModelBase(Base.Commands.GameCommandBase command, GameCommandTypeEnum gameType) : this(command.Name, command.Commands, gameType) { this.ID = command.ID; this.IsEnabled = command.IsEnabled; this.Requirements = new RequirementsSetModel(command.Requirements); }
public GameCommandModelBase(string name, HashSet <string> triggers, GameCommandTypeEnum gameType) : base(name, CommandTypeEnum.Game, triggers, includeExclamation: true, wildcards: false) { this.GameType = gameType; }
public GameCommandEditorWindow(GameCommandTypeEnum gameType, CurrencyModel currency) : this() { switch (gameType) { case GameCommandTypeEnum.Bet: this.editorDetailsControl = new BetGameCommandEditorDetailsControl(); this.viewModel = new BetGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Bid: this.editorDetailsControl = new BidGameCommandEditorDetailsControl(); this.viewModel = new BidGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.CoinPusher: this.editorDetailsControl = new CoinPusherGameCommandEditorDetailsControl(); this.viewModel = new CoinPusherGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Duel: this.editorDetailsControl = new DuelGameCommandEditorDetailsControl(); this.viewModel = new DuelGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Hangman: this.editorDetailsControl = new HangmanGameCommandEditorDetailsControl(); this.viewModel = new HangmanGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Heist: this.editorDetailsControl = new HeistGameCommandEditorDetailsControl(); this.viewModel = new HeistGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Hitman: this.editorDetailsControl = new HitmanGameCommandEditorDetailsControl(); this.viewModel = new HitmanGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.HotPotato: this.editorDetailsControl = new HotPotatoGameCommandEditorDetailsControl(); this.viewModel = new HotPotatoGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.LockBox: this.editorDetailsControl = new LockBoxGameCommandEditorDetailsControl(); this.viewModel = new LockBoxGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Roulette: this.editorDetailsControl = new RouletteGameCommandEditorDetailsControl(); this.viewModel = new RouletteGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.RussianRoulette: this.editorDetailsControl = new RussianRouletteGameCommandEditorDetailsControl(); this.viewModel = new RussianRouletteGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.SlotMachine: this.editorDetailsControl = new SlotMachineGameCommandEditorDetailsControl(); this.viewModel = new SlotMachineGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Spin: this.editorDetailsControl = new SpinGameCommandEditorDetailsControl(); this.viewModel = new SpinGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Steal: this.editorDetailsControl = new StealGameCommandEditorDetailsControl(); this.viewModel = new StealGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.TreasureDefense: this.editorDetailsControl = new TreasureDefenseGameCommandEditorDetailsControl(); this.viewModel = new TreasureDefenseGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Trivia: this.editorDetailsControl = new TriviaGameCommandEditorDetailsControl(); this.viewModel = new TriviaGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.Volcano: this.editorDetailsControl = new VolcanoGameCommandEditorDetailsControl(); this.viewModel = new VolcanoGameCommandEditorWindowViewModel(currency); break; case GameCommandTypeEnum.WordScramble: this.editorDetailsControl = new WordScrambleGameCommandEditorDetailsControl(); this.viewModel = new WordScrambleGameCommandEditorWindowViewModel(currency); break; } this.DataContext = this.ViewModel = this.viewModel; this.ViewModel.StartLoadingOperationOccurred += (sender, eventArgs) => { this.StartLoadingOperation(); }; this.ViewModel.EndLoadingOperationOccurred += (sender, eventArgs) => { this.EndLoadingOperation(); }; }