Skip to content

Interface: TurnsMessage<Input> ​

Defined in: lockstep.ts:47

What a room with turnClock = "players" sends when it closes turns: turns n to n + c - 1, all empty but the last, which has e.

Type Parameters ​

Type ParameterDefault type
Inputunknown

Properties ​

PropertyTypeDescriptionDefined in
tickflare"turns"Marks the message as this one, among any the game sends itself.lockstep.ts:49
nnumberThe first turn closed.lockstep.ts:51
cnumberHow many were closed.lockstep.ts:53
eTurnEntry<Input>[]What happened in the last of them.lockstep.ts:55
b?stringThe player whose request closed them, when it was a request.lockstep.ts:57

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.