player object cache
This commit is contained in:
parent
ce1863318c
commit
6fd7775bcb
@ -40,6 +40,7 @@ class Player {
|
|||||||
public $uploadRate = -1;
|
public $uploadRate = -1;
|
||||||
public $skins = null;
|
public $skins = null;
|
||||||
public $daysSinceZoneInscription = -1;
|
public $daysSinceZoneInscription = -1;
|
||||||
|
public $cache = array();
|
||||||
|
|
||||||
//Flags details
|
//Flags details
|
||||||
public $forcedSpectatorState = 0;
|
public $forcedSpectatorState = 0;
|
||||||
@ -242,4 +243,11 @@ class Player {
|
|||||||
$this->autoTarget = (bool)(intval($spectatorStatus / 1000) % 10);
|
$this->autoTarget = (bool)(intval($spectatorStatus / 1000) % 10);
|
||||||
$this->currentTargetId = intval($spectatorStatus / 10000);
|
$this->currentTargetId = intval($spectatorStatus / 10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear the Player's Temporary Data
|
||||||
|
*/
|
||||||
|
public function clearCache() {
|
||||||
|
$this->cache = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user