2013-11-28 17:36:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Configurators;
|
|
|
|
|
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
|
|
|
*
|
|
|
|
* @author steeffeen & kremsy
|
2014-04-12 12:14:37 +02:00
|
|
|
* @copyright ManiaControl Copyright © 2014 ManiaControl Team
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-28 17:36:39 +01:00
|
|
|
*/
|
|
|
|
interface ConfiguratorMenu {
|
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01:00
|
|
|
* Get the Menu Title
|
2013-11-28 17:36:39 +01:00
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getTitle();
|
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01: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
|
|
|
|
* @return \FML\Controls\Frame
|
2013-11-28 17:36:39 +01:00
|
|
|
*/
|
2013-12-31 14:50:28 +01:00
|
|
|
public function getMenu($width, $height, Script $script);
|
2013-11-28 17:36:39 +01:00
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01:00
|
|
|
* Save the Config Data
|
|
|
|
*
|
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);
|
|
|
|
}
|