Skip to content

five-on-it / packages/net-client/src/intake / IntakeFrame

Interface: IntakeFrame ​

Defined in: packages/net-client/src/intake.ts:37

A frame as the intake reads it: the snapshot and what the frame told of its entities.

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


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/net-client/src/intake.ts:39

The whole snapshot the frame produced.


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