TrackManiaControl/core/Configurator/ConfiguratorMenu.php

43 lines
877 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Configurator;
2013-12-31 10:40:03 +01:00
use FML\Script\Script;
use ManiaControl\Players\Player;
/**
* Interface for Configurator Menus
*
2014-05-02 17:40:47 +02:00
* @author ManiaControl Team <mail@maniacontrol.com>
2018-03-27 20:11:40 +02:00
* @copyright 2014-2018 ManiaControl Team
2014-05-02 17:40:47 +02:00
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface ConfiguratorMenu {
/**
* Get the menu title
*
* @return string
*/
public static function getTitle();
/**
* Get the configurator menu frame
*
2014-02-13 00:46:41 +01:00
* @param float $width
* @param float $height
* @param Script $script
* @param Player $player
* @return \FML\Controls\Frame
*/
public function getMenu($width, $height, Script $script, Player $player);
/**
* Save the config data
*
2014-02-13 00:46:41 +01:00
* @param array $configData
* @param Player $player
*/
public function saveConfigData(array $configData, Player $player);
}