public AskViewModel(CommandContainer commandContainer, GoFishVMData model, GoFishGameContainer gameContainer, IAskProcesses processes) { CommandContainer = commandContainer; _model = model; _gameContainer = gameContainer; _processes = processes; _model.AskList.ItemClickedAsync += AskList_ItemClickedAsync; _model.AskList.SendEnableProcesses(this, (() => _gameContainer.SaveRoot.RemovePairs == false && _gameContainer.SaveRoot.NumberAsked == false)); }
public GoFishMainGameClass(IGamePackageResolver mainContainer, IEventAggregator aggregator, BasicData basicData, TestOptions test, GoFishVMData currentMod, IMultiplayerSaveState state, IAsyncDelayer delay, ICardInfo <RegularSimpleCard> cardInfo, CommandContainer command, GoFishGameContainer gameContainer, IAskProcesses processes) : base(mainContainer, aggregator, basicData, test, currentMod, state, delay, cardInfo, command, gameContainer) { _model = currentMod; _processes = processes; }
public GoFishMainViewModel(CommandContainer commandContainer, GoFishMainGameClass mainGame, GoFishVMData viewModel, BasicData basicData, TestOptions test, IGamePackageResolver resolver, GoFishGameContainer gameContainer ) : base(commandContainer, mainGame, viewModel, basicData, test, resolver) { _mainGame = mainGame; _model = viewModel; _resolver = resolver; _model.Deck1.NeverAutoDisable = false; _model.PlayerHand1.AutoSelect = HandObservable <RegularSimpleCard> .EnumAutoType.SelectAsMany; gameContainer.LoadAskScreenAsync = LoadAskScreenAsync; }
public AskProcesses(GoFishGameContainer gameContainer, GoFishVMData model) { _gameContainer = gameContainer; _model = model; }