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.Collections.Generic.Dictionary<RoomBase, RoomInstanceGrid2D> | roomInstances | |
LayoutGrid2D<RoomBase> | mapLayout | |
GameObject | rootGameObject | |
LevelDescriptionGrid2D | levelDescription |
Methods
GetInternalLayoutRepresentation()
Gets the internal representation of the generated layout.
Declaration
public LayoutGrid2D<RoomBase> GetInternalLayoutRepresentation()
Returns
Type | Description |
---|---|
LayoutGrid2D<RoomBase> |
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.Collections.Generic.List<RoomInstanceGrid2D> |
GetSharedTilemaps()
Gets all the shared tilemaps.
Declaration
public List<Tilemap> GetSharedTilemaps()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Tilemap> |