4e02b4b8ea
- First Step for ManialinkManager - Added FML Update + MC-Fixes for the changes
41 lines
934 B
PHP
41 lines
934 B
PHP
<?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");
|
|
}
|
|
}
|