Example #1
0
        public override void Worldgen(World world)
        {
            int stoneWallType = GameID.GetWallID <BrickWall>();

            for (int i = 0; i < world.Size.X; i++)
            {
                for (int j = 0; j < world.Size.Y; j++)
                {
                    if (i == 0 || i == world.Size.X - 1 || j == 0 || j == world.Size.Y - 1)
                    {
                        world.PlaceTile(stoneWallType, i, j, (int)TileHandler.TileLayer.Wall);
                    }
                }
            }

            world.FillLayer(GameID.GetFloorID <StoneFloor>(), (int)TileHandler.TileLayer.Floor);
        }