class Senses : Component, IQueryable

Senses is used by the sense system as the storage for all of the sensory information from the other sense components/systems. It is required for sight. See the SensesSystem for more.

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)