From 6fd7775bcb2c7efdd016b3214e63f58ba2595d76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 9 May 2014 19:47:20 +0200 Subject: [PATCH] player object cache --- application/core/Players/Player.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/core/Players/Player.php b/application/core/Players/Player.php index d547539c..bd4f581e 100644 --- a/application/core/Players/Player.php +++ b/application/core/Players/Player.php @@ -40,6 +40,7 @@ class Player { public $uploadRate = -1; public $skins = null; public $daysSinceZoneInscription = -1; + public $cache = array(); //Flags details public $forcedSpectatorState = 0; @@ -242,4 +243,11 @@ class Player { $this->autoTarget = (bool)(intval($spectatorStatus / 1000) % 10); $this->currentTargetId = intval($spectatorStatus / 10000); } + + /** + * Clear the Player's Temporary Data + */ + public function clearCache() { + $this->cache = array(); + } }