Skip to content

dungeonmaker-js / dungeonmaker-js / Dungeon

Interface: Dungeon ​

Defined in: packages/dungeonmaker-js/src/dungeon.ts:14

Extends ​

  • Readonly<DungeonData>

Properties ​

cells ​

readonly cells: Uint8Array

Defined in: packages/dungeonmaker-js/src/dungeon.ts:10

Row-major, north-up, width * height entries.

Inherited from ​

Readonly.cells


diagnostics ​

readonly diagnostics: readonly string[]

Defined in: packages/dungeonmaker-js/src/dungeon.ts:11

Inherited from ​

Readonly.diagnostics


entities? ​

readonly optional entities?: EntityLayer

Defined in: packages/dungeonmaker-js/src/layers.ts:56

Inherited from ​

CoreResult.entities


height ​

readonly height: number

Defined in: packages/dungeonmaker-js/src/dungeon.ts:7

Inherited from ​

Readonly.height


rooms? ​

readonly optional rooms?: RoomLayer

Defined in: packages/dungeonmaker-js/src/layers.ts:55

Inherited from ​

CoreResult.rooms


seed ​

readonly seed: number

Defined in: packages/dungeonmaker-js/src/dungeon.ts:8

Inherited from ​

Readonly.seed


steps? ​

readonly optional steps?: StepLayer

Defined in: packages/dungeonmaker-js/src/layers.ts:57

Inherited from ​

CoreResult.steps


width ​

readonly width: 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

Returns ​

Cell

DungeonMaker 2.05 © Peter Henningsen. WebAssembly port, package and site created by spearwolf. Released under GPL-3.0-or-later. About · License