added more libxmlrpc callbacks
This commit is contained in:
parent
cb29330a50
commit
7fc0228952
@ -30,6 +30,10 @@ interface Callbacks {
|
|||||||
const BEGINROUND = 'Callbacks.BeginRound';
|
const BEGINROUND = 'Callbacks.BeginRound';
|
||||||
/** BeginTurn Callback: TurnNumber */
|
/** BeginTurn Callback: TurnNumber */
|
||||||
const BEGINTURN = 'Callbacks.BeginTurn';
|
const BEGINTURN = 'Callbacks.BeginTurn';
|
||||||
|
/** BeginPlaying Callback */
|
||||||
|
const BEGINPLAYING = 'Callbacks.BeginPlaying';
|
||||||
|
/** EndPlaying Callback */
|
||||||
|
const ENDPLAYING = 'Callbacks.EndPlaying';
|
||||||
/** EndTurn Callback: TurnNumber */
|
/** EndTurn Callback: TurnNumber */
|
||||||
const ENDTURN = 'Callbacks.EndTurn';
|
const ENDTURN = 'Callbacks.EndTurn';
|
||||||
/** EndRound Callback: RoundNumber */
|
/** EndRound Callback: RoundNumber */
|
||||||
@ -38,8 +42,12 @@ interface Callbacks {
|
|||||||
const ENDSUBMATCH = 'Callbacks.EndSubmatch';
|
const ENDSUBMATCH = 'Callbacks.EndSubmatch';
|
||||||
/** EndMap Callback: Map */
|
/** EndMap Callback: Map */
|
||||||
const ENDMAP = 'Callbacks.EndMap';
|
const ENDMAP = 'Callbacks.EndMap';
|
||||||
/** EndMatch Callback: MatchNumber */
|
/** BeginPodium Callback */
|
||||||
const ENDMATCH = 'Callbacks.EndMatch';
|
const BEGINPODIUM = 'Callbacks.BeginPodium';
|
||||||
|
/** EndPodium Callback */
|
||||||
|
const ENDPODIUM = 'Callbacks.EndPodium';
|
||||||
|
/** UnloadingMap Callback */
|
||||||
|
const UNLOADINGMAP = 'Callbacks.UnloadingMap';
|
||||||
|
|
||||||
/** BeginWarmup Callback */
|
/** BeginWarmup Callback */
|
||||||
const BEGINWARMUP = 'Callbacks.BeginWarmUp';
|
const BEGINWARMUP = 'Callbacks.BeginWarmUp';
|
||||||
@ -66,4 +74,8 @@ interface Callbacks {
|
|||||||
const AFKSTATUS = 'Callbacks.AfkStatus';
|
const AFKSTATUS = 'Callbacks.AfkStatus';
|
||||||
/** Returns if the GameMode has Warmup activated, returned after param1 Scores */ //returned after TODO
|
/** Returns if the GameMode has Warmup activated, returned after param1 Scores */ //returned after TODO
|
||||||
const WARMUPSTATUS = 'Callbacks.WarmupStatus';
|
const WARMUPSTATUS = 'Callbacks.WarmupStatus';
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TrackMania Callbacks
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,12 @@ class LibXmlRpcCallbacks implements CallbackListener {
|
|||||||
case 'LibXmlRpc_BeginTurn':
|
case 'LibXmlRpc_BeginTurn':
|
||||||
$this->maniaControl->callbackManager->triggerCallback(Callbacks::BEGINTURN, $data[0]);
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::BEGINTURN, $data[0]);
|
||||||
break;
|
break;
|
||||||
|
case 'LibXmlRpc_BeginPlaying':
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::BEGINPLAYING, $data[0]);
|
||||||
|
break;
|
||||||
|
case 'LibXmlRpc_EndPlaying':
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::ENDPLAYING, $data[0]);
|
||||||
|
break;
|
||||||
case 'LibXmlRpc_EndTurn':
|
case 'LibXmlRpc_EndTurn':
|
||||||
$this->maniaControl->callbackManager->triggerCallback(Callbacks::ENDTURN, $data[0]);
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::ENDTURN, $data[0]);
|
||||||
break;
|
break;
|
||||||
@ -66,6 +72,15 @@ class LibXmlRpcCallbacks implements CallbackListener {
|
|||||||
case 'LibXmlRpc_EndMap':
|
case 'LibXmlRpc_EndMap':
|
||||||
$this->maniaControl->mapManager->handleScriptEndMap($data[1]);
|
$this->maniaControl->mapManager->handleScriptEndMap($data[1]);
|
||||||
break;
|
break;
|
||||||
|
case 'LibXmlRpc_BeginPodium':
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::BEGINPODIUM, $data[0]);
|
||||||
|
break;
|
||||||
|
case 'LibXmlRpc_EndPodium':
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::ENDPODIUM, $data[0]);
|
||||||
|
break;
|
||||||
|
case 'LibXmlRpc_UnloadingMap':
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::UNLOADINGMAP, $data[0]);
|
||||||
|
break;
|
||||||
case 'LibXmlRpc_EndMatch':
|
case 'LibXmlRpc_EndMatch':
|
||||||
$this->maniaControl->callbackManager->triggerCallback(Callbacks::ENDMATCH, $data[0]);
|
$this->maniaControl->callbackManager->triggerCallback(Callbacks::ENDMATCH, $data[0]);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user