public GamePage(string launchArguments)
        {
            this.InitializeComponent();
            _messages = new ObservableCollection <PlayerMessage>();
            //_messages.Add(new PlayerMessage() { Message = "Testowa wiadomosc"});
            _players = new ObservableCollection <Player>();
            //_players.Add(new Player() {Id = 1, Name = "Uzytkownik"});
            PlayersListView.ItemsSource  = _players;
            MessagesListView.ItemsSource = _messages;

            // Create the game.

            _game = XamlGame <Game1> .Create(launchArguments, Window.Current.CoreWindow, this);

            _game.GamePage    = this;
            _serviceConnector = SharedModel.GetConnector();
        }
示例#2
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory     = "Content";
     _quoridorServiceConnector = SharedModel.GetConnector();
 }