Skip to content

five-on-it / packages/missions/src/schema / GameState

Variable: GameState ​

const GameState: ZodObject<{ counters: ZodDefault<ZodRecord<ZodString, ZodNumber>>; flags: ZodDefault<ZodArray<ZodString>>; }, $strict>

Defined in: packages/missions/src/schema.ts:1656

A game's own state (a campaign's memory): flags and counters that outlive a mission, kept for each player (a party's shared, as its completed missions are) for as long as the room lasts. A mission's rules set and test them with the actions and conditions of its own (setFlag, clearFlag, add, set, { flag }, { counter }, {counter:<id>} in a text): a name declared here is the game's, and no mission may declare it again.