Exemplo n.º 1
0
void ScriptEventListener::unregisterFunction(const int8* functionName)
{
    ScriptList* scriptList = getScriptList(functionName);

    if(!scriptList)
    {
    	LOG(warning) << "Could not function to unregister [" << functionName << "]";
        return;
    }

    delete(scriptList);

    _removeScriptList(functionName);
}
Exemplo n.º 2
0
void ScriptEventListener::unregisterFunction(const int8* functionName)
{
    ScriptList* scriptList = getScriptList(functionName);

    if(!scriptList)
    {
        gLogger->log(LogManager::NOTICE, "Script Event Listener could not find %s to unregister.", functionName);
        return;
    }

    delete(scriptList);

    _removeScriptList(functionName);
}