2017-03-27 22:21:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\ShootMania;
|
|
|
|
|
|
|
|
|
2017-04-13 19:14:23 +02:00
|
|
|
use ManiaControl\Callbacks\Structures\Common\BasePlayerTimeStructure;
|
2017-03-27 22:21:59 +02:00
|
|
|
use ManiaControl\ManiaControl;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Structure Class for the OnPlayerRequestActionChange Structure Callback
|
|
|
|
*
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-27 22:21:59 +02:00
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
2018-03-27 20:11:40 +02:00
|
|
|
* @copyright 2014-2018 ManiaControl Team
|
2017-03-27 22:21:59 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
2017-04-13 19:14:23 +02:00
|
|
|
class OnPlayerRequestActionChange extends BasePlayerTimeStructure {
|
2017-03-27 22:21:59 +02:00
|
|
|
private $actionChange;
|
|
|
|
|
2017-04-07 23:26:35 +02:00
|
|
|
/**
|
|
|
|
* OnPlayerRequestActionChange constructor.
|
|
|
|
*
|
|
|
|
* @param \ManiaControl\ManiaControl $maniaControl
|
|
|
|
* @param $data
|
|
|
|
*/
|
2017-03-27 22:21:59 +02:00
|
|
|
public function __construct(ManiaControl $maniaControl, $data) {
|
|
|
|
parent::__construct($maniaControl, $data);
|
|
|
|
|
2017-03-29 20:38:46 +02:00
|
|
|
$this->actionChange = $this->getPlainJsonObject()->actionchange;
|
2017-03-27 22:21:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* < Can be -1 (request previous action) or 1 (request next action)
|
|
|
|
*
|
2017-04-07 23:26:35 +02:00
|
|
|
* @api
|
2017-03-27 22:21:59 +02:00
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getActionChange() {
|
|
|
|
return $this->actionChange;
|
|
|
|
}
|
|
|
|
}
|