public void SetMap(IMapExtender map) { gameState.MapExtender = map; gameState.MapExtender.OnLoad(); SetTilesAndCommands(); screen.FontColor = gameState.Map.ColorScheme.TextColor; }
private void TransferAngryStateIfNeeded(IMapExtender saveMap) { // Preserve guard anger state for castle // when changing levels if (gameState.Map.GetType() == saveMap.GetType() && gameState.Map.Guards != null) { gameState.Map.Guards.IsAngry = saveMap.TheMap.Guards.IsAngry; } }