class Senses: Component, IQueryable

A relationship representing that an entity senses another entity. This is the inverse of the SensedBy relationship.

cells: SparseGrid

A sparse grid of cells representing the portion of the map the actor’s senses reveal.

explored: SparseGrid

A sparse grid of cells the actor’s senses have previously revealed.

remembered: SparseGrid

A sparse grid class that stores data using hashed coordinates. Similar to a SparseMap except here there is only one entry per grid coordinate. This is suitable for stuff like Cells.

exploredStorage: table<Level, SparseGrid>
rememberedStorage: table<Level, SparseGrid>
actors: ActorStorage

An actor storage with the actors the player is aware of.

unknown: SparseMap<Vector2>

Unkown actors are things the player is aware of the location of, but not the components.

__new(self: Senses, actor: any)
exclusive: boolean

(static) Whether the relationship excludes other relationship types of the same kind.

target: Entity

The other entity involved in this relationship instance.

generateSymmetric(self: Relationship): Relationship?

Generates a symetric relationship to this one. Marriage -> Marraige for the other entity.

generateInverse(self: Senses): (sensedby: Relationship)
Returns:

sensedby (Relationship) – inverse SensedBy relationship.