예제 #1
0
        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];
                }
            }
        }
예제 #2
0
 public virtual GameMap LoadMap(JsonMap jsonMap)
 {
     GameMap gameMap = new GameMap(this, jsonMap);
     GameMaps[gameMap.Name] = gameMap;
     return gameMap;
 }