Skip to content

Commit 8ddc26a

Browse files
author
Ben Woodford
authored
Added support for lobbysteamid
This shows up in games such as Borderlands where it uses a lobby system rather than straight servers.
1 parent 7cdb593 commit 8ddc26a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Syntax/SteamApi/Containers/GameDetails.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class GameDetails extends BaseContainer
99
public $serverIp;
1010

1111
public $serverSteamId;
12+
13+
public $lobbyId;
1214

1315
public $extraInfo;
1416

@@ -19,6 +21,7 @@ public function __construct($gameDetails)
1921
$this->serverIp = $this->checkIssetField($gameDetails, 'gameserverip');
2022
$this->serverSteamId = $this->checkIssetField($gameDetails, 'gameserversteamid');
2123
$this->extraInfo = $this->checkIssetField($gameDetails, 'gameextrainfo');
24+
$this->lobbyId = $this->checkIssetField($gameDetails, 'lobbysteamid');
2225
$this->gameId = is_null($gameId) ? null : (int)$gameId;
2326
}
2427
}

0 commit comments

Comments
 (0)