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