opengsq.responses.battlefield package

Submodules

opengsq.responses.battlefield.info module

class opengsq.responses.battlefield.info.Info(hostname: str, num_players: int, max_players: int, game_type: str, map: str, rounds_played: int, rounds_total: int, teams: list[float], target_score: int, status: str, ranked: bool, punk_buster: bool, password: bool, uptime: int, round_time: int, mod: str | None = None, ip_port: str | None = None, punk_buster_version: str | None = None, join_queue: bool | None = None, region: str | None = None, ping_site: str | None = None, country: str | None = None, blaze_player_count: int | None = None, blaze_game_state: str | None = None, quick_match: bool | None = None)

Bases: object

Represents the info of a game.

hostname: str

The hostname of the game server.

num_players: int

The number of players in the game.

max_players: int

The maximum number of players allowed in the game.

game_type: str

The type of the game.

map: str

The current map of the game.

rounds_played: int

The number of rounds played.

rounds_total: int

The total number of rounds.

teams: list[float]

The list of teams.

target_score: int

The target score.

status: str

The status of the game.

ranked: bool

Whether the game is ranked.

punk_buster: bool

Whether PunkBuster is enabled.

password: bool

Whether a password is required.

uptime: int

The uptime of the game server.

round_time: int

The round time.

mod: str | None = None

The game mod. This property is optional.

ip_port: str | None = None

The IP port of the game server. This property is optional.

punk_buster_version: str | None = None

The version of PunkBuster. This property is optional.

join_queue: bool | None = None

Whether the join queue is enabled. This property is optional.

region: str | None = None

The region of the game server. This property is optional.

ping_site: str | None = None

The ping site of the game server. This property is optional.

country: str | None = None

The country of the game server. This property is optional.

blaze_player_count: int | None = None

The number of players in the Blaze game state. This property is optional.

blaze_game_state: str | None = None

The Blaze game state. This property is optional.

quick_match: bool | None = None

Whether quick match is enabled. This property is optional.

opengsq.responses.battlefield.version_info module

class opengsq.responses.battlefield.version_info.VersionInfo(mod: str, version: str)

Bases: object

Represents the version of a game mod.

mod: str

The mod of the game.

version: str

The version of the mod.

Module contents