From 3e0a6d0b46560f0e522b999e5e8b18fbd1da165a Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Sat, 10 Sep 2016 03:30:57 +0200 Subject: [PATCH] Add information about the gameserver if the player is connected to one --- src/Syntax/SteamApi/Containers/Player.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Syntax/SteamApi/Containers/Player.php b/src/Syntax/SteamApi/Containers/Player.php index 14b37b5..c59bfad 100644 --- a/src/Syntax/SteamApi/Containers/Player.php +++ b/src/Syntax/SteamApi/Containers/Player.php @@ -42,6 +42,14 @@ class Player extends BaseContainer public $personaStateFlags; + public $gameServerIp; + + public $gameServerSteamId; + + public $gameExtraInfo; + + public $gameId; + public $locCountryCode; public $locStateCode; @@ -73,6 +81,10 @@ public function __construct($player) $this->primaryClanId = $this->checkIssetField($player, 'primaryclanid'); $this->timecreated = $this->checkIssetField($player, 'timecreated'); $this->personaStateFlags = $this->checkIssetField($player, 'personastateflags'); + $this->gameServerIp = $this->checkIssetField($player, 'gameserverip'); + $this->gameServerSteamId = $this->checkIssetField($player, 'gameserversteamid'); + $this->gameExtraInfo = $this->checkIssetField($player, 'gameextrainfo'); + $this->gameId = $this->checkIssetField($player, 'gameid'); $this->locCountryCode = $this->checkIssetField($player, 'loccountrycode'); $this->locStateCode = $this->checkIssetField($player, 'locstatecode'); $this->locCityId = $this->checkIssetField($player, 'loccityid');