opengsq.responses.nadeo package

Submodules

opengsq.responses.nadeo.status module

class opengsq.responses.nadeo.status.Player(login: str, nickname: str, player_id: int, team_id: int, is_spectator: bool, ladder_ranking: int, flags: int)

Bases: object

Represents a player on the server.

login: str
nickname: str
player_id: int
team_id: int
is_spectator: bool
ladder_ranking: int
flags: int
class opengsq.responses.nadeo.status.ServerOptions(name: str, comment: str, password: bool, max_players: int, max_spectators: int, current_game_mode: int, current_chat_time: int, hide_server: int, ladder_mode: int, vehicle_quality: int)

Bases: object

Represents server configuration options.

name: str
comment: str
password: bool
max_players: int
max_spectators: int
current_game_mode: int
current_chat_time: int
hide_server: int
ladder_mode: int
vehicle_quality: int
class opengsq.responses.nadeo.status.Version(name: str, version: str, build: str)

Bases: object

Represents the server version information.

name: str
version: str
build: str
class opengsq.responses.nadeo.status.Status(version: 'Version', server_options: 'ServerOptions', players: 'list[Player]', map_info: 'MapInfo')

Bases: object

version: Version
server_options: ServerOptions
players: list[Player]
map_info: MapInfo
classmethod from_raw_data(version_data: dict[str, str], server_data: dict[str, Any], players_data: list[dict[str, Any]], map_data: dict[str, Any]) Status
class opengsq.responses.nadeo.status.MapInfo(name: str, author: str, environment: str)

Bases: object

Represents current map information.

name: str
author: str
environment: str
classmethod from_dict(data: dict[str, Any]) MapInfo

Module contents