opengsq.responses.directplay package

Submodules

opengsq.responses.directplay.status module

class opengsq.responses.directplay.status.DirectPlayGameType(value)

Bases: IntEnum

DirectPlay Game Types

UNKNOWN = 0
AGE_OF_EMPIRES_1 = 1
AGE_OF_EMPIRES_2 = 2
class opengsq.responses.directplay.status.Player(name: str, civilization: str = '', team: int = 0, color: int = 0, ready: bool = False)

Bases: object

DirectPlay Player Information

name: str
civilization: str = ''
team: int = 0
color: int = 0
ready: bool = False
class opengsq.responses.directplay.status.Status(name: str, game_type: str, map: str, num_players: int, max_players: int, password_protected: bool, game_version: str, game_mode: str, difficulty: str, speed: str, players: List[Player], raw: dict[str, str | int | bool | list])

Bases: object

DirectPlay Status Response

name: str
game_type: str
map: str
num_players: int
max_players: int
password_protected: bool
game_version: str
game_mode: str
difficulty: str
speed: str
players: List[Player]
raw: dict[str, str | int | bool | list]

Module contents