コード例 #1
0
        public void Load(Session.Data sessionData)
        {
            currentSession = new Session(board, playerViews);
            currentSession.Load(sessionData);

            currentSession.GameFinished += FinishGame;
        }
コード例 #2
0
        /// <summary>
        /// Navigates to game
        /// </summary>
        /// <param name="sessionData">Savedata of a session to load</param>
        public void NavigateToGame(Session.Data sessionData)
        {
            PageGame game = new PageGame(this);

            currentPage = game;
            Navigate(game);
            game.Load(sessionData);
        }