// Create the game-state when exiting a room through this warp point. public GameState CreateExitState() { if (warpType == WarpType.Entrance) { return(RoomEnterExitState.CreateExit(edgeDirection, 25)); } return(null); }
// Create the game-state when entering a room through this warp point. public GameState CreateEnterState() { int distance = 19; if (edgeDirection == Directions.Down) { distance += 8; } if (warpType == WarpType.Entrance) { return(RoomEnterExitState.CreateEnter(Directions.Reverse(edgeDirection), distance, null)); } return(null); }