Hierarchy

  • WorldLayer

Implements

Constructors

  • Parameters

    • width: undefined | number
    • height: number
    • z: WorldZ

    Returns WorldLayer

Properties

encodedLightBlockMap: undefined | Uint32Array

Run length encoded light block map to ensure FieldOfView.canSeePosition is always synced correctly.

encodedLightLevelMap: undefined | Uint32Array

Run length encoded light level map to ensure FieldOfView.canSeePosition is always synced correctly.

height: number
instance: undefined | IWorldLayerCPP
island: default
lightBlockMap: IByteGrid

Light blocks - changed via tileUpdate event

lightLevelMap: IColorGrid

Light level for the renderer. Updated in FieldOfView.computeLightMap

onDoodadUpdates: Map<number, onDoodadUpdateDelegate> = ...
onTileUpdates: Map<number, onTileUpdateDelegate> = ...
width: number
z: WorldZ

Methods

  • Parameters

    Returns boolean

  • Parameters

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns number

  • Parameters

    • x: number
    • y: number

    Returns number

  • Parameters

    • x: number
    • y: number

    Returns TerrainType

  • Parameters

    • terrain: number

    Returns TerrainType

  • Parameters

    • terrain: number

    Returns boolean

  • Parameters

    • terrain: number

    Returns boolean

  • Parameters

    • terrain: number

    Returns boolean

  • Parameters

    • terrain: number

    Returns boolean

  • Parameters

    • terrain: number

    Returns boolean

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns boolean

  • Returns void

  • Returns void

  • Updates the rendered tile. All neighbors are updated by default, but the neighbor tile update is only done when updateNeighbors is true

    Parameters

    • tile: default
    • shouldUpdate: boolean
    • updateNeighbors: boolean
    • flushTileImmediately: boolean
    • Optional isUpdatingNeighbors: boolean
    • Optional debug: boolean

    Returns void

Generated using TypeDoc