Class LevelGenerator
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class LevelGenerator : MonoBehaviour
- Inheritance
-
LevelGenerator
- Inherited Members
-
- Extension Methods
-
Constructors
LevelGenerator()
Fields
nrOfRooms
Field Value
- int
rooms
Field Value
- Room[]
Methods
CheckAdditionalDoorOccupation()
public void CheckAdditionalDoorOccupation()
Clear()
CloseDoors()
Generate()
Returns
- bool
GetEnterenceDoor(Room)
public Door GetEnterenceDoor(Room spawnedRoom)
Parameters
spawnedRoom
Room
Returns
- Door
GetObjectRoot()
public Transform GetObjectRoot()
Returns
- Transform
GetOpposingDoor(Room, Door)
public Door GetOpposingDoor(Room room, Door door)
Parameters
room
Room
door
Door
Returns
- Door
GetRandomDoor()
public Door GetRandomDoor()
Returns
- Door
GetRoomConnectionPosition(Room, Door)
public Vector3 GetRoomConnectionPosition(Room room, Door door)
Parameters
room
Room
door
Door
Returns
- Vector3
GetRoomToSpawn()
public Room GetRoomToSpawn()
Returns
- Room
GetUnoccupiedDoors()
public List<Door> GetUnoccupiedDoors()
Returns
- List<Door>
Go()
SpawnRoom()
Returns
- bool
SpawnRoom(Room, Door)
public bool SpawnRoom(Room room, Door door)
Parameters
room
Room
door
Door
Returns
- bool
VerifyRoomSpawn(Room)
public bool VerifyRoomSpawn(Room room)
Parameters
room
Room
Returns
- bool