Skip to content

Delta beta ​

Interface of @v12-engine/engine

ts
export interface Delta

A frame as what changed since another (base, a tick the player has), or all of it (base: null)

Members ​

added ​

ts
added: EntityState[];

Entities that were not in the base frame, whole

base ​

ts
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 ​

ts
changed: EntityChange[];

Entities of the base frame that changed, one EntityChange each

events ​

ts
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 ​

ts
removed: number[];

Ids of the entities of the base frame that are gone

rest ​

ts
rest: Partial<Rest>;

The parts of the frame besides its entities that differ from the base's, whole

restPatch ​

ts
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 ​

ts
tick: number;

The tick this delta brings the player's view to