floatOfEvent beta
Function of @v12-engine/client
ts
export declare function floatOfEvent(event: SessionEvent, state: GameState, removed?: readonly {
id: number;
pos: {
x: number;
z: number;
};
}[]): FloatOfEvent | undefined;An event of the session as a float: the kinds it is looked up as, in order, and what it floats (the entity, the amount, who did it, where). Nothing for an event no float is for. removed: what went with the snapshot (a dead unit, for a deny)