to have this mc version working you need to update the dedicated server scripts
This commit is contained in:
kremsy
2017-04-13 16:12:10 +02:00
parent 09b974e2cc
commit 7a7826b4b6
17 changed files with 273 additions and 64 deletions

View File

@ -3,7 +3,6 @@
namespace ManiaControl\Callbacks\Structures\Common;
use ManiaControl\Callbacks\Structures\Common\BaseResponseStructure;
use ManiaControl\ManiaControl;
/**
@ -16,6 +15,7 @@ use ManiaControl\ManiaControl;
*/
class StatusCallbackStructure extends BaseResponseStructure {
protected $active;
protected $available;
/**
* Construct a new On Hit Structure
@ -26,7 +26,8 @@ class StatusCallbackStructure extends BaseResponseStructure {
public function __construct(ManiaControl $maniaControl, $data) {
parent::__construct($maniaControl, $data);
$this->active = $this->getPlainJsonObject()->active;
$this->active = $this->getPlainJsonObject()->active;
$this->available = $this->getPlainJsonObject()->available;
}
/**
@ -39,4 +40,14 @@ class StatusCallbackStructure extends BaseResponseStructure {
return $this->active;
}
/**
* Checks if the Mode uses Warmup or not
*
* @api
* @return boolean
*/
public function isAvailable() {
return $this->available;
}
}