StateChanges beta
Interface of @v12-engine/client
ts
export interface StateChangesWhat a snapshot changed in the state, as GameState.apply gives it to renderers and the HUD
Members
added
ts
added: EntityView[];Entities the snapshot has that the state did not
changed
ts
changed: EntityView[];Those kept that the snapshot has another state for: the rest stand as they were, which a renderer need not look at again
events
ts
events: SessionEvent[];Events of the session that came in with the snapshot
landed
ts
landed: ProjectileView[];Shots that are gone: they arrived
removed
ts
removed: EntityView[];Entities the state had that the snapshot does not