Skip to content

CellMemory beta ​

Class of @v12-engine/engine

ts
export declare class CellMemory

What a team remembers of one layer's cells changed out of its sight (TeamMemory.cells), as the engine keeps it while the game runs: what the team last knew of each cell, a byte a cell of the map, and whether it remembers it, a bit a cell. Made at the map's size the first time a cell of the layer is to be remembered and never grown, so that a fire changing thousands of cells out of sight makes nothing as it goes. Read with rememberedCells; gone through in order of the cells. A save keeps it as the value by cell, as it always has (teamMemory)

Members ​

count ​

ts
count: number;

How many cells it remembers

toRecord ​

ts
toRecord(): Record<number, number>;

The value by cell, in order of the cells: as a save keeps it