Table of Contents

Class LevelGenerator

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class LevelGenerator : MonoBehaviour
Inheritance
LevelGenerator
Inherited Members
Extension Methods

Constructors

LevelGenerator()

public LevelGenerator()

Fields

nrOfRooms

public int nrOfRooms

Field Value

int

rooms

public Room[] rooms

Field Value

Room[]

Methods

CheckAdditionalDoorOccupation()

public void CheckAdditionalDoorOccupation()

Clear()

public void Clear()

CloseDoors()

public void CloseDoors()

Generate()

public bool 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()

public void Go()

SpawnRoom()

public bool 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