TrackManiaControl/application/core/Configurators/ConfiguratorMenu.php

42 lines
798 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Configurators;
use FML\Script\Pages;
use FML\Script\Tooltips;
use ManiaControl\Players\Player;
/**
* Interface for configurator menus
*
* @author steeffeen & kremsy
*/
interface ConfiguratorMenu {
/**
* Get the menu title
*
* @return string
*/
public function getTitle();
/**
* Get the configurator menu
*
* @param float $width
* @param float $height
* @param Pages $pages
* @param Tooltips $tooltips
* @return \FML\Controls\Control
*/
public function getMenu($width, $height, Pages $pages, Tooltips $tooltips);
/**
* Save the config data
*
* @param array $configData
* @param Player $player
*/
public function saveConfigData(array $configData, Player $player);
}