five-on-it / packages/protocol/src/snapshot-v2 / FrameNews
Interface: FrameNews
Defined in: packages/protocol/src/snapshot-v2.ts:416
What a frame told the client of its entities, beside the whole snapshot it produces.
Extended by
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).
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.
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).
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.