callback improvements, new structures for shootmania callbacks

This commit is contained in:
kremsy
2014-10-10 16:19:46 +02:00
parent 1feeb768b2
commit 27efcabb6e
6 changed files with 120 additions and 6 deletions

View File

@ -0,0 +1,29 @@
<?php
namespace ManiaControl\Callbacks\Structures;
use ManiaControl\Players\Player;
class CaptureStructure {
private $playerArray;
public function __construct($maniaControl, $data) {
$this->playerArray = $data;
}
/**
* @return mixed
*/
public function getLoginArray() {
return $this->playerArray;
}
/**
* @return Player[]
*/
public function getPlayerArray() {
//TODO build array with player objects
return $this->playerArray;
}
}