コード例 #1
0
 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);
 }
コード例 #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);
 }