small improvements
This commit is contained in:
parent
6b62932ead
commit
769147e7c7
@ -10,6 +10,7 @@ use ManiaControl\Formatter;
|
|||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use ManiaControl\ManiaExchange\ManiaExchangeList;
|
use ManiaControl\ManiaExchange\ManiaExchangeList;
|
||||||
use ManiaControl\ManiaExchange\ManiaExchangeManager;
|
use ManiaControl\ManiaExchange\ManiaExchangeManager;
|
||||||
|
use ManiaControl\ManiaExchange\MXMapInfo;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,10 +35,6 @@ class Player {
|
|||||||
public $downloadRate = -1;
|
public $downloadRate = -1;
|
||||||
public $uploadRate = -1;
|
public $uploadRate = -1;
|
||||||
public $skins = null;
|
public $skins = null;
|
||||||
public $stateUpdateLatency; //TODO format?
|
|
||||||
public $stateUpdatePeriod; //TODO format?
|
|
||||||
public $latestNetworkActivity; //TODO format?
|
|
||||||
public $packetLossRate; //TODO format?
|
|
||||||
public $maniaPlanetPlayDays = -1;
|
public $maniaPlanetPlayDays = -1;
|
||||||
|
|
||||||
//Flags details
|
//Flags details
|
||||||
@ -90,11 +86,6 @@ class Player {
|
|||||||
$this->downloadRate = $mpPlayer->downloadRate;
|
$this->downloadRate = $mpPlayer->downloadRate;
|
||||||
$this->uploadRate = $mpPlayer->uploadRate;
|
$this->uploadRate = $mpPlayer->uploadRate;
|
||||||
$this->skins = $mpPlayer->skins;
|
$this->skins = $mpPlayer->skins;
|
||||||
$this->stateUpdateLatency = $mpPlayer->stateUpdateLatency;
|
|
||||||
$this->stateUpdatePeriod = $mpPlayer->stateUpdatePeriod;
|
|
||||||
$this->latestNetworkActivity = $mpPlayer->latestNetworkActivity;
|
|
||||||
$this->packetLossRate = $mpPlayer->packetLossRate;
|
|
||||||
|
|
||||||
|
|
||||||
//Flag Details
|
//Flag Details
|
||||||
$this->forcedSpectatorState = $mpPlayer->forceSpectator;
|
$this->forcedSpectatorState = $mpPlayer->forceSpectator;
|
||||||
@ -114,9 +105,7 @@ class Player {
|
|||||||
$this->autoTarget = $mpPlayer->autoTarget;
|
$this->autoTarget = $mpPlayer->autoTarget;
|
||||||
$this->currentTargetId = $mpPlayer->currentTargetId;
|
$this->currentTargetId = $mpPlayer->currentTargetId;
|
||||||
|
|
||||||
|
|
||||||
$this->joinTime = time();
|
$this->joinTime = time();
|
||||||
|
|
||||||
if ($this->nickname == '') {
|
if ($this->nickname == '') {
|
||||||
$this->nickname = $this->login;
|
$this->nickname = $this->login;
|
||||||
}
|
}
|
||||||
|
@ -120,6 +120,8 @@ class PlayerManager implements CallbackListener {
|
|||||||
$playerItem->isSpectator = $detailedPlayerInfo->isSpectator;
|
$playerItem->isSpectator = $detailedPlayerInfo->isSpectator;
|
||||||
$playerItem->avatar = $detailedPlayerInfo->avatar;
|
$playerItem->avatar = $detailedPlayerInfo->avatar;
|
||||||
$playerItem->ladderStats = $detailedPlayerInfo->ladderStats;
|
$playerItem->ladderStats = $detailedPlayerInfo->ladderStats;
|
||||||
|
$playerItem->downloadRate = $detailedPlayerInfo->downloadRate;
|
||||||
|
$playerItem->uploadRate = $detailedPlayerInfo->uploadRate;
|
||||||
|
|
||||||
$playerItem->hoursSinceZoneInscription = $detailedPlayerInfo->hoursSinceZoneInscription;
|
$playerItem->hoursSinceZoneInscription = $detailedPlayerInfo->hoursSinceZoneInscription;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user