callback handling for script begin map callbacks

This commit is contained in:
Steffen Schröder 2014-01-19 22:48:33 +01:00
parent 16042974fd
commit 0390b8794d

View File

@ -225,6 +225,14 @@ class CallbackManager {
$scriptCallbackData = $callback[1];
$scriptCallbackName = $scriptCallbackData[0];
switch ($scriptCallbackName) {
case 'BeginMap':
$this->triggerScriptCallback($scriptCallbackName, $scriptCallbackData);
$this->triggerCallback(self::CB_MC_BEGINMAP, $callback);
break;
case 'LibXmlRpc_BeginMap':
$this->triggerScriptCallback($scriptCallbackName, $scriptCallbackData);
$this->triggerCallback(self::CB_MC_BEGINMAP, $callback);
break;
case 'EndMap':
$this->triggerScriptCallback($scriptCallbackName, $scriptCallbackData);
if (!$this->mapEnded) {