Skip to content

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

Function: decodeAct() ​

decodeAct(byte): object

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

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

Parameters ​

byte ​

number

Returns ​

object

act ​

act: "type" | "none" | "door" | "pickup" | "search" | "fire" | "use" | "drop" | "phone" | "open" | "pick" | "punch" | "knockout" | "throw" | "talk" | "shake" | "rummage" | "call" | "board" | "enter" | "exit" | "cower" | "climb" | "swim" | "bark"

seq ​

seq: number