opengsq.responses.ase package
Submodules
opengsq.responses.ase.player module
- class opengsq.responses.ase.player.Player(name: str | None = None, team: str | None = None, skin: str | None = None, score: int | None = None, ping: int | None = None, time: int | None = None)
Bases:
object
Represents a player in the game.
- name: str | None = None
The name of the player.
- team: str | None = None
The team of the player.
- skin: str | None = None
The skin of the player.
- score: int | None = None
The score of the player.
- ping: int | None = None
The ping of the player.
- time: int | None = None
The time of the player.
opengsq.responses.ase.status module
- class opengsq.responses.ase.status.Status(game_name: str, game_port: int, hostname: str, game_type: str, map: str, version: str, password: bool, num_players: int, max_players: int, rules: dict[str, str] = <factory>, players: list[~opengsq.responses.ase.player.Player] = <factory>)
Bases:
object
Represents the status of a game server.
- game_name: str
The name of the game.
- game_port: int
The port number of the game server.
- hostname: str
The hostname of the game server.
- game_type: str
The type of the game.
- map: str
The current map of the game.
- version: str
The version of the game.
- password: bool
Whether a password is required to join the game.
- num_players: int
The number of players currently in the game.
- max_players: int
The maximum number of players allowed in the game.
- rules: dict[str, str]
The rules of the game. Defaults to an empty dictionary.