callback fix

This commit is contained in:
kremsy 2014-10-10 18:55:49 +02:00
parent 984235e97a
commit 0aa539b00d
4 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class LibXmlRpcCallbacks implements CallbackListener {
$this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::ONHIT, new PlayerHitStructure($this->maniaControl, $data)); $this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::ONHIT, new PlayerHitStructure($this->maniaControl, $data));
break; break;
case 'LibXmlRpc_OnNearMiss': case 'LibXmlRpc_OnNearMiss':
$this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::ONHIT, new NearMissStructure($this->maniaControl, $data)); $this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::ONNEARMISS, new NearMissStructure($this->maniaControl, $data));
break; break;
case 'LibXmlRpc_OnArmorEmpty': case 'LibXmlRpc_OnArmorEmpty':
$this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::ONARMOREMPTY, new ArmorEmptyStructure($this->maniaControl, $data)); $this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::ONARMOREMPTY, new ArmorEmptyStructure($this->maniaControl, $data));

View File

@ -16,6 +16,7 @@ class ArmorEmptyStructure {
private $maniaControl; private $maniaControl;
public function __construct(ManiaControl $maniaControl, $data) { public function __construct(ManiaControl $maniaControl, $data) {
$this->maniaControl = $maniaControl;
$this->shooter = $data[0]; $this->shooter = $data[0];
$this->victim = $data[1]; $this->victim = $data[1];
$this->damage = $data[2]; $this->damage = $data[2];

View File

@ -16,6 +16,7 @@ class NearMissStructure {
private $maniaControl; private $maniaControl;
public function __construct(ManiaControl $maniaControl, $data) { public function __construct(ManiaControl $maniaControl, $data) {
$this->maniaControl = $maniaControl;
$this->shooter = $data[0]; $this->shooter = $data[0];
$this->victim = $data[1]; $this->victim = $data[1];
$this->weapon = $data[2]; $this->weapon = $data[2];

View File

@ -16,6 +16,7 @@ class PlayerHitStructure {
private $maniaControl; private $maniaControl;
public function __construct(ManiaControl $maniaControl, $data) { public function __construct(ManiaControl $maniaControl, $data) {
$this->maniaControl = $maniaControl;
$this->shooter = $data[0]; $this->shooter = $data[0];
$this->victim = $data[1]; $this->victim = $data[1];
$this->damage = $data[2]; $this->damage = $data[2];