示例#1
0
MANGOS_DLL_EXPORT
bool ProcessEventId(uint32 uiEventId, Object* pSource, Object* pTarget, bool bIsStart)
{
    Script *tmpscript = m_scripts[GetEventIdScriptId(uiEventId)];
    if (!tmpscript || !tmpscript->pProcessEventId)
        return false;

    // bIsStart may be false, when event is from taxi node events (arrival=false, departure=true)
    return tmpscript->pProcessEventId(uiEventId, pSource, pTarget, bIsStart);
}
示例#2
0
MANGOS_DLL_EXPORT
bool ProcessEventId(uint32 eventId, Object* source, Object* target, bool isStart)
{
    Script* tmpscript = m_scripts[GetEventIdScriptId(eventId)];
    if (!tmpscript || !tmpscript->pProcessEventId)
        return false;

    // isStart are normally true. For taxi event id at arrival, it's false
    return tmpscript->pProcessEventId(eventId, source, target, isStart);
}