Module necro.game.system.Perspective

Functions

getAttribute (attribute)
getListAttribute (attribute)
getTargetPosition ()
isEntityTypeMatchedByAttribute (entity, attribute)
isTileTypeIlluminated (tileID)
isTileTypeRevealed (tileID)
update (entity)

Tables

Attribute


Functions

getAttribute (attribute)

Parameters:

  • attribute
getListAttribute (attribute)

Parameters:

  • attribute
getTargetPosition ()
isEntityTypeMatchedByAttribute (entity, attribute)

Parameters:

  • entity
  • attribute
isTileTypeIlluminated (tileID)

Parameters:

  • tileID
isTileTypeRevealed (tileID)

Parameters:

  • tileID
update (entity)

Parameters:

  • entity

Tables

Attribute

Fields:

  • TILE_REVEAL_ALL 1 - Boolean: if true, all tiles are visible, as if they were revealed
  • TILE_REVEAL_GROUPS 2 - Set of strings: tiles with these flags are always visible, as if they were revealed
  • TILE_TARGET_POINTER_GROUPS 3 - Set of strings: draws arrows pointing at each tile with the specified flags
  • TILE_VISION_RADIUS 4 - Number: tiles outside of this radius are invisible
  • TILE_BRIGHTNESS_RATE 5 - Number: tile brightness change rate per tick
  • TILE_ILLUMINATED_GROUPS 6 - Set of strings: tiles with these flags are always fully lit visually
  • OBJECT_VISIBILITY_GROUPS 7 - Set of strings: objects with these components are always visible, even if unrevealed
  • CONTENTS_VISIBILITY_GROUPS 8 - Set of strings: inventories of entities with these components are visible
  • OBJECT_SILHOUETTE_GROUPS 9 - Set of strings: objects with these components are silhouetted, regardless of visibility and brightness
  • OBJECT_UNSILHOUETTE_GROUPS 10 - Set of strings: objects with these components are not silhouetted, regardless of visibility and brightness
  • OBJECT_VISION_RADIUS 11 - Number: objects outside of this radius are invisible
  • OBJECT_MINIMAP_GROUPS 14 - Set of strings: objects with these components are always displayed on the minimap, even if unrevealed
  • SHADOW_INVERT 15 - Boolean: if true, shadowed tiles are unshadowed and vice-versa
generated by LDoc 1.4.6