TrackManiaControl/core/Callbacks/Structures/ShootMania/OnRoyalRoundWinnerStructure.php

41 lines
990 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Callbacks\Structures\ShootMania;
use ManiaControl\Callbacks\Structures\Common\BaseStructure;
use ManiaControl\ManiaControl;
/**
* Structure Class for the OnRoyalRoundWinner Structure Callback
*
* @api
* @author ManiaControl Team <mail@maniacontrol.com>
2019-01-05 21:02:24 +01:00
* @copyright 2014-2019 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class OnRoyalRoundWinnerStructure extends BaseStructure {
protected $player;
/**
* Construct a new On Hit Structure
*
* @param ManiaControl $maniaControl
* @param array $data
*/
public function __construct(ManiaControl $maniaControl, $data) {
parent::__construct($maniaControl, $data);
$this->player = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->login);
}
/**
* Gets the Player
*
* @api
* @return \ManiaControl\Players\Player Player
*/
public function getPlayer() {
return $this->player;
}
}