コード例 #1
0
 public SideboardingEditorModel(ServicesProvider servicesProvider, GameInfoItem gameItem, DeckItem deck)
 {
     this.ServiceProvider = servicesProvider;
       this.GameItem = gameItem;
       this.originalDeck = deck;
       this.Deck = (DeckItem)deck.Clone();
 }
コード例 #2
0
 public ClientStarterModel(PlayerInfo playerInfo, DeckItem deck, ServicesProvider servicesProvider)
     : base(Guid.NewGuid().ToString())
 {
     this.console = new ConsoleModel(Guid.NewGuid().ToString());
       this.deck = deck;
       this.playerInfo = playerInfo;
       this.players = new ObservableCollection<PlayerAccountData>();
 }
コード例 #3
0
        public LogicHandler(IViewFactory viewFactory)
        {
            this.viewFactory = viewFactory;

              servicesProvider = new ServicesProvider(SettingsManager.Settings.ClientLanguage, SettingsManager.Settings.GameLanguage);
              gameItem = servicesProvider.GetAllGames().Single(g => g.Code == SettingsManager.Settings.CurrentGameCode);
              servicesProvider.LoadGame(gameItem);
        }
コード例 #4
0
 public DeckEditorModel(ServicesProvider servicesProvider, GameInfoItem gameItem, DeckItem deck)
 {
     this.ServiceProvider = servicesProvider;
       this.GameItem = gameItem;
       if(deck == null)
     Deck = new DeckItem(gameItem.Code);
       else
       {
     originalDeck = deck;
     Deck = (DeckItem)deck.Clone();
       }
 }
コード例 #5
0
 public DeckRoomModel(ServicesProvider servicesProvider, GameInfoItem gameItem)
 {
     this.ServicesProvider = servicesProvider;
       this.GameItem = gameItem;
       this.SelectedDeck = new ObservableProperty<DeckItem, DeckRoomModel>(this, null);
 }
コード例 #6
0
 public ServerListener(PlayerInfo player, ServicesProvider servicesProvider, int port)
 {
     this.Player = player;
       this.servicesProvider = servicesProvider;
       this.netMessageService = new NetMessageService(port);
 }
コード例 #7
0
 public ClientConnector(PlayerInfo playerInfo, ServicesProvider servicesProvider)
 {
     this.playerInfo = playerInfo;
       this.servicesProvider = servicesProvider;
 }