Raymond Maarloeve
Loading...
Searching...
No Matches
WallSpawner Class Reference

Responsible for spawning the outer walls, towers, and gate around the map boundary. More...

Public Member Functions

 WallSpawner (List< WallsSetup > walls, Terrain terrain, int tileSize, int mapWidthInTiles, int mapLengthInTiles)
 Initializes a new instance of the WallSpawner class.
 
GameObject SpawnWalls (Tile[,] tiles)
 Spawns the perimeter walls, towers, and gate around the map.
 

Detailed Description

Responsible for spawning the outer walls, towers, and gate around the map boundary.

Constructor & Destructor Documentation

◆ WallSpawner()

WallSpawner.WallSpawner ( List< WallsSetup walls,
Terrain  terrain,
int  tileSize,
int  mapWidthInTiles,
int  mapLengthInTiles 
)

Initializes a new instance of the WallSpawner class.

Parameters
wallsList of wall prefabs with their configurations.
terrainTerrain reference for height sampling.
tileSizeSize of a single tile in world units.
mapWidthInTilesNumber of tiles in width.
mapLengthInTilesNumber of tiles in length.

Member Function Documentation

◆ SpawnWalls()

GameObject WallSpawner.SpawnWalls ( Tile  tiles[,])

Spawns the perimeter walls, towers, and gate around the map.

Parameters
tiles2D tile array of the map.
Returns
Parent GameObject containing all wall elements.

The documentation for this class was generated from the following file: