callback fix
This commit is contained in:
parent
984235e97a
commit
0aa539b00d
@ -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));
|
||||||
|
@ -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];
|
||||||
|
@ -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];
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user