Delta beta
Interface of @v12-engine/engine
export interface DeltaA frame as what changed since another (base, a tick the player has), or all of it (base: null)
Members
added
added: EntityState[];Entities that were not in the base frame, whole
base
base: number | null;The tick of the frame this is the changes since, or null for a delta that holds all of the frame
changed
changed: EntityChange[];Entities of the base frame that changed, one EntityChange each
events
events: {
tick: number;
n: number;
events: SessionEvent[];
}[];The batches of events the player has not said it got, each by its own number (n) and the tick it went out with: sent again until it does, applied once. Talk between two ticks is a batch of its own (RV14)
removed
removed: number[];Ids of the entities of the base frame that are gone
rest
rest: Partial<Rest>;The parts of the frame besides its entities that differ from the base's, whole
restPatch
restPatch?: Partial<Record<keyof Rest, WirePatch>>;The other parts that changed in part, as what changed in them (WirePatch: the gold of one player of four)
tick
tick: number;The tick this delta brings the player's view to