Skip to content

five-on-it / packages/sim/src/acts / decodeAct

Function: decodeAct() ​

decodeAct(byte): object

Defined in: packages/sim/src/acts.ts:198

A snapshot's act byte read back: the act and its counter.

Parameters ​

byte ​

number

Returns ​

object

act ​

act: "type" | "none" | "door" | "pickup" | "sit" | "dance" | "smoke" | "lie" | "lean" | "drop" | "search" | "plant" | "pick" | "defuse" | "repair" | "restrain" | "drag" | "hack" | "fire" | "use" | "phone" | "open" | "punch" | "knockout" | "throw" | "talk" | "shake" | "rummage" | "call" | "board" | "enter" | "exit" | "cower" | "climb" | "swim" | "bark" | "knock" | "point" | "handsUp" | "surrender" | "restrained"

seq ​

seq: number