Skip to content

five-on-it / packages/protocol/src/snapshot-acked / AckedFrame

Interface: AckedFrame ​

Defined in: packages/protocol/src/snapshot-acked.ts:378

A frame decoded by an AckedDecoder: the whole snapshot it produces (its events only those not shown before), what it told against the last frame shown, and whether it went onto nothing.

Extends ​

Properties ​

changed ​

changed: ReadonlySet<number>

Defined in: packages/protocol/src/snapshot-v2.ts:418

The entities whose state the frame changed (every one of a whole snapshot).

Inherited from ​

FrameNews.changed


keyframe ​

keyframe: boolean

Defined in: packages/protocol/src/snapshot-acked.ts:380


posed ​

posed: ReadonlyMap<number, number>

Defined in: packages/protocol/src/snapshot-v2.ts:424

The entities whose pose the frame carried, each with the tick the server measured it at (the frame's tick, unless the change says the pose is older, POSE_AGE): the only samples a client records of them.

Inherited from ​

FrameNews.posed


removed ​

removed: readonly number[]

Defined in: packages/protocol/src/snapshot-v2.ts:430

The entities gone since the last frame shown, in the frame's order: those the frame removed and those whose life changed under their id (listed again in the same frame as new entities).

Inherited from ​

FrameNews.removed


snapshot ​

snapshot: SnapshotMessage

Defined in: packages/protocol/src/snapshot-acked.ts:379


tiers ​

tiers: ReadonlyMap<number, number>

Defined in: packages/protocol/src/snapshot-v2.ts:432

The tier each change was sent at (TIER_EVERY), by entity.

Inherited from ​

FrameNews.tiers