In-game tools · interface
NetworkReadout
What the panel needs of a session.
Explained in In-game tools.
interface NetworkReadoutimport type { NetworkReadout } from '@driftengine/tools';In depth
Supplied rather than read off a LockstepSession, for the reason the asset index is supplied:
an editor attached to a session, a recording or a replay wants the same panel, and only two of
those have a session to read.
Properties
| Name | Type | Description |
|---|---|---|
inputDelayreadonly | number | |
participantsreadonly | number | |
snapshotBytesreadonly | number | Bytes in one snapshot slot. |
snapshotCountreadonly | number | How many slots the rewind window holds. |
desyncsreadonly | readonly Desync[] | Everything the session has seen disagree, oldest first. |
componentHashesreadonly | { readonly ours: ReadonlyMap<string, string>; readonly theirs: ReadonlyMap<string, string>; } | null | A per-component breakdown, where the caller has one. See the header. |