コード例 #1
0
 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));
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public AskProcesses(GoFishGameContainer gameContainer, GoFishVMData model)
 {
     _gameContainer = gameContainer;
     _model         = model;
 }