Skip to content

TeamMemory beta ​

Interface of @v12-engine/engine

ts
export interface TeamMemory

What a team remembers of the map: enemy structures out of sight as they were last seen, and camps found empty

Members ​

cells ​

ts
cells?: Record<string, CellMemory>;

Cells of the game's layers the rules changed out of the team's sight (world.setCells), as the team last knew them, by layer (CellMemory, read with rememberedCells). Told as they are now when they come into sight (cellsSeen), and gone from here. A save keeps each layer as the value by cell

cleared ​

ts
cleared: number[];

The camps the team has seen empty, by id

startKnown ​

ts
startKnown?: boolean;

Whether what stands on a map explored from the start and is no player's (trees, mines, neutral buildings) has been put among structures, as it stood when the team first looked (FogOfWar.exploredFromStart)

structures ​

ts
structures: Record<EntityId, EntityState>;

Structures out of sight, the way they looked when last seen, by id