Skip to content

dumpKey

dumpKey(world, entity): string

Defined in: packages/engine/src/gameplay/harness.ts:311

The key dumpState files an entity under: its index, and after a dot its generation once koota has reused the index, since a coin destroyed and a player spawned in one send share it. A room’s world files an Entity of its scene under its place, so each client’s scene finds it. A replica files a streamed entity under its key in the source, so the two dump alike, and its own entities under local:, apart from the stream’s.

Parameter Type
world World
entity Entity

string