Skip to content

quantize beta ​

Function of @v12-engine/engine

ts
export declare function quantize(state: EntityState): EntityState;

An entity's state with its numbers rounded for the wire: positions to 1/256 of a unit (16 bits over a map of 256), the facing to a 256th of a turn, health and shield up to whole points (what is alive keeps at least one), mana down (an ability is never shown ready that the simulation would refuse), what is under way to hundredths, the seconds left of buffs and of shared cooldowns up to whole seconds