Freeform state for client minigames: a named game and whatever data that game needs to move between participants. Part of the IRC schema reference.
{
"type": "minigame",
"game": "tictactoe",
"gamedata": {
"board": "x..o..x..",
"turn": "o"
}
}| Field | Type | Constraints |
|---|---|---|
type | "minigame" | Discriminator |
game | string | Which game this belongs to |
gamedata | any | Entirely game-defined — the mesh does not inspect it |
Note
gamedata is the one deliberately unvalidated field in the union. The mesh relays it as-is; both ends of a game have to agree on its shape themselves.