public void Enter(string mapName, int entryPoint = 0) { MapInfo mapInfo = FindMapByPartialName(mapName); if (mapInfo == null) { return; } ChangeMap(GameState.Player, mapInfo.ID, entryPoint); TextArea.Clear(); commandExecutor.Prompt(); }
public void Run(Player thePlayer) { if (thePlayer == null) { return; } gameState.Initialize(thePlayer); systemState.Factory = gameFactory; systemState.Factory.LoadSurfaces(); systemState.Factory.SetGameSpeed(gameState, thePlayer.Gamespeed); var map = mapLoader.LoadMap(gameState.Player.MapID); mapChanger.SetMap(map); textArea.Clear(); commandExecutor.Prompt(); }