public SideboardingEditorModel(ServicesProvider servicesProvider, GameInfoItem gameItem, DeckItem deck) { this.ServiceProvider = servicesProvider; this.GameItem = gameItem; this.originalDeck = deck; this.Deck = (DeckItem)deck.Clone(); }
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>(); }
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); }
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(); } }
public DeckRoomModel(ServicesProvider servicesProvider, GameInfoItem gameItem) { this.ServicesProvider = servicesProvider; this.GameItem = gameItem; this.SelectedDeck = new ObservableProperty<DeckItem, DeckRoomModel>(this, null); }
public ServerListener(PlayerInfo player, ServicesProvider servicesProvider, int port) { this.Player = player; this.servicesProvider = servicesProvider; this.netMessageService = new NetMessageService(port); }
public ClientConnector(PlayerInfo playerInfo, ServicesProvider servicesProvider) { this.playerInfo = playerInfo; this.servicesProvider = servicesProvider; }