public function dropIn($player)
 {
     $this->represent = $player;
     StormCore::callEvent(new FuturePlayerLoadEvent($player, $this));
 }
Example #2
0
 public function handleAuthCallback($result)
 {
     if ($result->code != 200) {
         $this->authenticated = false;
         StormCore::callEvent(new PlayerAuthenticationErrorEvent($this, StormClient::teaseError($result->response)));
         return;
     }
     $this->loadJson($result->response);
 }