dungeonmaker-js / dungeonmaker-js / Dungeon
Interface: Dungeon
Defined in: packages/dungeonmaker-js/src/dungeon.ts:14
Extends
Readonly<DungeonData>
Properties
cells
readonlycells:Uint8Array
Defined in: packages/dungeonmaker-js/src/dungeon.ts:10
Row-major, north-up, width * height entries.
Inherited from
Readonly.cells
diagnostics
readonlydiagnostics: readonlystring[]
Defined in: packages/dungeonmaker-js/src/dungeon.ts:11
Inherited from
Readonly.diagnostics
entities?
readonlyoptionalentities?:EntityLayer
Defined in: packages/dungeonmaker-js/src/layers.ts:56
Inherited from
height
readonlyheight:number
Defined in: packages/dungeonmaker-js/src/dungeon.ts:7
Inherited from
Readonly.height
rooms?
readonlyoptionalrooms?:RoomLayer
Defined in: packages/dungeonmaker-js/src/layers.ts:55
Inherited from
seed
readonlyseed:number
Defined in: packages/dungeonmaker-js/src/dungeon.ts:8
Inherited from
Readonly.seed
steps?
readonlyoptionalsteps?:StepLayer
Defined in: packages/dungeonmaker-js/src/layers.ts:57
Inherited from
width
readonlywidth:number
Defined in: packages/dungeonmaker-js/src/dungeon.ts:6
Inherited from
Readonly.width
Methods
get()
get(
x,y):Cell
Defined in: packages/dungeonmaker-js/src/dungeon.ts:16
Cell at column x, row y; RangeError when outside the map.
Parameters
x
number
y
number
