callback improvements, new structures for shootmania callbacks
This commit is contained in:
29
core/Callbacks/Structures/CaptureStructure.php
Normal file
29
core/Callbacks/Structures/CaptureStructure.php
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user