Skip to content

Commit

Permalink
Add information about the gameserver if the player is connected to one
Browse files Browse the repository at this point in the history
  • Loading branch information
Decicus committed Sep 10, 2016
1 parent e67a4f7 commit 3e0a6d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Syntax/SteamApi/Containers/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ class Player extends BaseContainer

public $personaStateFlags;

public $gameServerIp;

public $gameServerSteamId;

public $gameExtraInfo;

public $gameId;

public $locCountryCode;

public $locStateCode;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3e0a6d0

Please sign in to comment.