Skip to content

game state

Game State Events

Game State Change

  • Description: Game state changed
  • Parameters:
  • reason: int - Change reason ID
  • value: float - New value
  • Usage:
    Python
    @client.event
    async def on_game_state_change(reason: int, value: float) -> None:
        ...
    

Statistics

  • Description: Statistics updated
  • Parameters:
  • stats: List[Tuple[str, int]] - List of (statistic, value) pairs
  • Usage:
    Python
    @client.event
    async def on_statistics(stats: List[Tuple[str, int]]) -> None:
        ...