示例#1
0
 public function process()
 {
     $o = new Object();
     $o->setUserId($this->datas['user_id']);
     $o->setUserName($this->datas['user_name']);
     $o->setUserTeam($this->datas['user_team']);
     $o->setUserSteamid($this->datas['steam_id']);
     $o->setKilledUserId($this->datas['killed_user_id']);
     $o->setKilledUserName($this->datas['killed_user_name']);
     $o->setKilledUserTeam($this->datas['killed_user_team']);
     $o->setKilledUserSteamid($this->datas['killed_steam_id']);
     return $o;
 }
示例#2
0
 private function processKillAssist(\eBot\Message\Type\KillAssist $message)
 {
     $killer = $this->processPlayer($message->getUserId(), $message->getUserName(), $message->getUserTeam(), $message->getUserSteamid());
     //$killed = $this->processPlayer($message->getKilledUserId(), $message->getKilledUserName(), $message->getKilledUserTeam(), $message->getKilledUserSteamid());
     if (!$this->waitForRestart && $this->enable && in_array($this->getStatus(), array(self::STATUS_FIRST_SIDE, self::STATUS_SECOND_SIDE, self::STATUS_OT_FIRST_SIDE, self::STATUS_OT_SECOND_SIDE))) {
         $killer->inc("assist");
         $killer->save();
     }
     //        $this->addLog($message->userName . " assisted the kill of " . $message->killedUserName);
     //        $this->addMatchLog($this->getColoredUserNameHTML($message->userName, $message->userTeam) . " assisted the kill of " . $this->getColoredUserNameHTML($message->killedUserName, $message->killedUserTeam));
 }