private void ApplyGameState(GameState curState, GameState nextState)
 {
     _mapManager.ApplyGameStatePre(curState.MapData);
     _entities.ApplyEntityStates(curState.EntityStates, curState.EntityDeletions, nextState?.EntityStates);
     _players.ApplyPlayerStates(curState.PlayerStates);
     _mapManager.ApplyGameStatePost(curState.MapData);
 }
Exemplo n.º 2
0
 private void ApplyGameState(GameState gameState)
 {
     _mapManager.ApplyGameStatePre(gameState.MapData);
     entityManager.ApplyEntityStates(gameState.EntityStates, gameState.EntityDeletions, gameState.GameTime);
     playerManager.ApplyPlayerStates(gameState.PlayerStates);
     _mapManager.ApplyGameStatePost(gameState.MapData);
 }
Exemplo n.º 3
0
        private void ApplyGameState(GameState gameState)
        {
            GameStates[gameState.Sequence] = gameState;
            CurrentState = gameState;

            entityManager.ApplyEntityStates(CurrentState.EntityStates, CurrentState.GameTime);
            playerManager.ApplyPlayerStates(CurrentState.PlayerStates);
        }
Exemplo n.º 4
0
 private void ApplyGameState(GameState gameState)
 {
     entityManager.ApplyEntityStates(gameState.EntityStates, gameState.EntityDeletions, gameState.GameTime);
     playerManager.ApplyPlayerStates(gameState.PlayerStates);
 }