📄️ Faction
The Faction type is an enum that represents the different factions in the game.
📄️ GameEventLog
The Game Event Log is a data type that records the events of a game by day. It is included in the GameSave data type that is written to the database at the end of the game.
📄️ GameSave
The Game Save is the data type written to the database at the end of the game. It contains all the information needed to trace the events of a game, and also includes statistics about the game and its players.
📄️ GameState
The Game State provides a snapshot of the current state of the game. It is sent to clients when the game starts, and is updated whenever the game state changes. Clients can use this data to render the game state to the user.
📄️ GameStats
The Game Stats is the data type that contains statistics about a game. It is included in the GameSave data type.
📄️ JudgementVote
The Judgement Vote type simply represents the literal strings 'pardon' or 'execute', indicating the vote of a player during the judgement phase of the game.
📄️ Message
The Message data type represents a single message sent to one or more players in the game. This includes both chat messages sent from player to player, and system messages sent from the server to players.
📄️ Phase
The Phase type is an enum that represents the different phases in the game as literal strings.
📄️ PlayerStats
The Player Stats includes the statistics tracked for an individual player in the game. The GameSave type includes a PlayerStats object for each player in the game.
📄️ Role
The Role type is an enum that stores the different roles in the game as string literals.