示例#1
0
        private void CreateStates()
        {
            var gameState = stateMapper.Map(view.gameStateModel);

            gameController.CreateGameState(gameState);
            gameController.CreatePlayerState(view.playerStateModel.Number, view.playerStateModel.Name);
        }
示例#2
0
        private void CreateStates(GameStateModel gameModel, PlayerStateModel playerModel)
        {
            var gameState = _stateMapper.Map(gameModel);

            _controller.CreateGameState(gameState);
            _controller.CreatePlayerState(playerModel.Number, playerModel.Name);
            var state = _controller.GetGameState();
        }