Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IWorldLayer

Hierarchy

  • IWorldLayer

Implemented by

Index

Properties

exploredMap

exploredMap: IExploreMap | undefined

height

height: number

level

level: WorldZ

lightBlockMap

lightBlockMap: IByteGrid

lightLevelMap

lightLevelMap: IColorGrid

onDoodadUpdate

onDoodadUpdate: onDoodadUpdateDelegate

onTileUpdate

onTileUpdate: onTileUpdateDelegate

width

width: number

Methods

delete

  • delete(): void
  • Returns void

getTile

  • Parameters

    • x: number
    • y: number

    Returns TerrainData

getTileDecoration

  • getTileDecoration(x: number, y: number): number
  • Parameters

    • x: number
    • y: number

    Returns number

getTileType

  • getTileType(x: number, y: number): TerrainType
  • Parameters

    • x: number
    • y: number

    Returns TerrainType

getType

  • Parameters

    Returns TerrainType

isDoodadOverHidden

  • Parameters

    Returns boolean

isFence

  • Parameters

    Returns boolean

isTilled

  • Parameters

    Returns boolean

isWall

  • Parameters

    Returns boolean

setTile

  • setTile(x: number, y: number, terrainType: TerrainType | undefined, terrainMasks?: TerrainMask): void
  • Parameters

    • x: number
    • y: number
    • terrainType: TerrainType | undefined
    • Optional terrainMasks: TerrainMask

    Returns void

updateAll

  • updateAll(): void
  • Returns void

updateTile

  • updateTile(x: number, y: number, tile: ITile, shouldUpdate?: undefined | false | true, updateNeighbors?: undefined | false | true, flushImmediate?: undefined | false | true, recentlyUpdatedFiles?: Set<string>, debug?: undefined | false | true): void
  • Parameters

    • x: number
    • y: number
    • tile: ITile
    • Optional shouldUpdate: undefined | false | true
    • Optional updateNeighbors: undefined | false | true
    • Optional flushImmediate: undefined | false | true
    • Optional recentlyUpdatedFiles: Set<string>
    • Optional debug: undefined | false | true

    Returns void

Generated using TypeDoc