- Improved ManialinkManager

- First Step for ingame Configurator
- AdminMenu
- StyleManager
- Callbacks of PlayerManager
This commit is contained in:
Steffen Schröder
2013-11-28 03:47:08 +01:00
parent e09f3ee95f
commit 9bed5b3d3f
14 changed files with 402 additions and 150 deletions

View File

@ -1,41 +0,0 @@
<?php
namespace ManiaControl\Settings;
use ManiaControl\ManiaControl;
use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Callbacks\CallbackManager;
/**
* Ingame setting configurator class
*
* @author kremsy & steeffeen
*/
class SettingConfigurator implements CallbackListener {
/**
* Private properties
*/
private $maniaControl = null;
/**
* Construct setting configurator
*
* @param \ManiaControl\ManiaControl $maniaControl
*/
public function __construct(ManiaControl $maniaControl) {
$this->maniaControl = $maniaControl;
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_MC_ONINIT, $this, 'onInit');
}
/**
* Handle OnInit callback
*
* @param array $callback
*/
public function onInit(array $callback) {
// TODO: handle callback
// $this->maniaControl->manialinkUtil->
// $this->maniaControl->chat->sendChat("test");
}
}

View File

@ -2,10 +2,6 @@
namespace ManiaControl;
require_once __DIR__ . '/SettingConfigurator.php';
use ManiaControl\Settings\SettingConfigurator;
/**
* Class managing settings and configurations
*
@ -37,7 +33,6 @@ class SettingManager {
public function __construct(ManiaControl $maniaControl) {
$this->maniaControl = $maniaControl;
$this->initTables();
$this->configurator = new SettingConfigurator($maniaControl);
}
/**