Class DungeonGeneratorLevelGrid2D
Holds information about the generated level. Currently cannot be serialized.
Inheritance
System.Object
DungeonGeneratorLevelGrid2D
Inherited Members
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public class DungeonGeneratorLevelGrid2D : GeneratedLevelBase<RoomInstanceGrid2D, LevelDescriptionGrid2D>
Constructors
DungeonGeneratorLevelGrid2D(Dictionary<RoomBase, RoomInstanceGrid2D>, LayoutGrid2D<RoomBase>, GameObject, LevelDescriptionGrid2D)
Declaration
public DungeonGeneratorLevelGrid2D(Dictionary<RoomBase, RoomInstanceGrid2D> roomInstances, LayoutGrid2D<RoomBase> mapLayout, GameObject rootGameObject, LevelDescriptionGrid2D levelDescription)
Parameters
Type | Name | Description |
---|---|---|
System. |
roomInstances | |
Layout |
mapLayout | |
Game |
rootGameObject | |
Level |
levelDescription |
Methods
GetInternalLayoutRepresentation() | Gets the internal representation of the generated layout. |
GetRoomInstances() | Gets information about all the rooms that are present in the generated level. |
GetSharedTilemaps() | Gets all the shared tilemaps. |
GetInternalLayoutRepresentation()
Gets the internal representation of the generated layout.
Declaration
public LayoutGrid2D<RoomBase> GetInternalLayoutRepresentation()
Returns
Type | Description |
---|---|
Layout |
Remarks
This method is usually only used by for very advanced/debugging use cases.
GetRoomInstances()
Gets information about all the rooms that are present in the generated level.
Declaration
public List<RoomInstanceGrid2D> GetRoomInstances()
Returns
Type | Description |
---|---|
System. |
GetSharedTilemaps()
Gets all the shared tilemaps.
Declaration
public List<Tilemap> GetSharedTilemaps()
Returns
Type | Description |
---|---|
System. |