added scores shootmania callback -> TODO implement players there in a good way, maybe a Object including these properties and a getPlayer() method with a reference to the player (setable without maniacontrol reference in the object itself)

This commit is contained in:
kremsy
2017-03-25 12:55:09 +01:00
parent 970d54cc35
commit 4804e0ab55
5 changed files with 237 additions and 14 deletions

View File

@ -18,8 +18,8 @@ use ManiaControl\Players\Player;
*/
class OnCaptureStructure extends BaseStructure {
public $time;
public $landMark;
public $time;
private $landMark;
private $playerArray = array();
@ -46,6 +46,11 @@ class OnCaptureStructure extends BaseStructure {
$this->shooter = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->shooter);
}
/** Dumps the Object with some Information */
public function dump() {
var_dump($this->landMark);
parent::dump();
}
/**
* Get the logins