This commit is contained in:
kremsy 2013-11-10 16:17:41 +01:00
parent 5bcf0ac4e7
commit 4da55c383e
2 changed files with 215 additions and 192 deletions

View File

@ -16,6 +16,7 @@ require_once __DIR__ . '/playerHandler.php';
require_once __DIR__ . '/pluginHandler.php'; require_once __DIR__ . '/pluginHandler.php';
require_once __DIR__ . '/server.php'; require_once __DIR__ . '/server.php';
require_once __DIR__ . '/settingManager.php'; require_once __DIR__ . '/settingManager.php';
require_once __DIR__ . '/settingConfigurator.php';
list($endiantest) = array_values(unpack('L1L', pack('V', 1))); list($endiantest) = array_values(unpack('L1L', pack('V', 1)));
if ($endiantest == 1) { if ($endiantest == 1) {
require_once __DIR__ . '/PhpRemote/GbxRemote.inc.php'; require_once __DIR__ . '/PhpRemote/GbxRemote.inc.php';
@ -50,7 +51,7 @@ class ManiaControl {
public $pluginHandler = null; public $pluginHandler = null;
public $server = null; public $server = null;
public $settingManager = null; public $settingManager = null;
public $settingConfigurator = null;
/** /**
* Private properties * Private properties
*/ */
@ -70,6 +71,7 @@ class ManiaControl {
$this->manialinkIdHandler = new ManialinkIdHandler(); $this->manialinkIdHandler = new ManialinkIdHandler();
$this->commands = new Commands($this); $this->commands = new Commands($this);
$this->pluginHandler = new PluginHandler($this); $this->pluginHandler = new PluginHandler($this);
$this->settingConfigurator = new SettingConfigurator($this);
} }
/** /**

View File

@ -0,0 +1,21 @@
<?php
/**
* @author Lukas Kremsmayr and steeffeen
*/
namespace ManiaControl;
class settingConfigurator {
private $maniaControl = null;
public function __construct(ManiaControl $maniaControl){
$this->maniaControl = $maniaControl;
$this->maniaControl->callbacks->registerCallbackHandler(Callbacks::CB_MC_ONINIT, $this, 'onInit');
}
private function onInit(){
$this->maniaControl->chat->sendChat("test");
}
}