public void AddMapToRegion(GameMap gameMap, int x, int y) { GameMapLayouts.Add(new GameMapLayout() {GameMap = gameMap, X = x, Y = y}); for (int _x = 0; _x < gameMap.MapWidth; _x++) { for (int _y = 0; _y < gameMap.MapHeight; _y++) { CollisionMap[_x + x][_y + y] = gameMap.CollisionMap[_x][_y]; } } }
public virtual GameMap LoadMap(JsonMap jsonMap) { GameMap gameMap = new GameMap(this, jsonMap); GameMaps[gameMap.Name] = gameMap; return gameMap; }