script manager class

improved script callback enabling
This commit is contained in:
Steffen Schröder
2014-05-06 02:17:11 +02:00
parent 27b7fba2cc
commit 8148da6753
3 changed files with 65 additions and 29 deletions

View File

@ -39,6 +39,7 @@ class Server implements CallbackListener {
public $serverCommands = null;
public $usageReporter = null;
public $rankingManager = null;
public $scriptManager = null;
/*
* Private Properties
@ -58,6 +59,7 @@ class Server implements CallbackListener {
$this->serverCommands = new ServerCommands($maniaControl);
$this->usageReporter = new UsageReporter($maniaControl);
$this->rankingManager = new RankingManager($maniaControl);
$this->scriptManager = new ScriptManager($maniaControl);
// Register for callbacks
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_ONINIT, $this, 'onInit');