VOID CEventSystem::PushEvent(STRING& eventName) { if(m_mapEventIndex_AsName.find(eventName) == m_mapEventIndex_AsName.end()) return; EVENT event; event.pEventDef = m_mapEventIndex_AsName[eventName]; _PushEvent(event); }
VOID CEventSystem::PushEvent(GAME_EVENT_ID id) { if(m_mapEventIndex_AsID.find(id) == m_mapEventIndex_AsID.end()) return; EVENT event; event.pEventDef = m_mapEventIndex_AsID[id]; _PushEvent(event); }
VOID CEventSystem::PushEvent(GAME_EVENT_ID id, LPCTSTR szArg0) { if(m_mapEventIndex_AsID.find(id) == m_mapEventIndex_AsID.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsID[id]; event.vArg.push_back(szArg0); _PushEvent(event); }
VOID CEventSystem::PushEvent(GAME_EVENT_ID id, const std::vector< STRING >& vParam) { if(m_mapEventIndex_AsID.find(id) == m_mapEventIndex_AsID.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsID[id]; event.vArg = vParam; _PushEvent(event); }
VOID CEventSystem::PushEvent(STRING& eventName, LPCTSTR szArg0) { if(m_mapEventIndex_AsName.find(eventName) == m_mapEventIndex_AsName.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsName[eventName]; event.vArg.push_back(szArg0); _PushEvent(event); }
VOID CEventSystem::PushEvent(STRING& eventName, const std::vector< STRING >& vParam) { if(m_mapEventIndex_AsName.find(eventName) == m_mapEventIndex_AsName.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsName[eventName]; event.vArg = vParam; _PushEvent(event); }
VOID CEventSystem::PushEvent(GAME_EVENT_ID id, FLOAT fArg0) { if(m_mapEventIndex_AsID.find(id) == m_mapEventIndex_AsID.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsID[id]; CHAR szTemp[32]; _snprintf(szTemp, 32, "%f", fArg0); event.vArg.push_back(szTemp); _PushEvent(event); }
VOID CEventSystem::PushEvent(STRING& eventName, FLOAT fArg0) { if(m_mapEventIndex_AsName.find(eventName) == m_mapEventIndex_AsName.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsName[eventName]; CHAR szTemp[32]; _snprintf(szTemp, 32, "%f", fArg0); event.vArg.push_back(szTemp); _PushEvent(event); }
void MsgEventManager::PushEvent(eMsgBoxType Type,const char* str, Msg_EventHandle Handle,void* pData, bool Mode,bool Cache) { MsgEvent event; event.pEventDef.BoxType = Type; event.pEventDef.FunTable= Handle; event.pData = pData; event.pContext= str; event.bMode = Mode; event.bCache= Cache; _PushEvent( event); }
VOID CEventSystem::PushEvent(GAME_EVENT_ID id, LPCTSTR szArg0, LPCTSTR szArg1, INT nArg2 ) { if(m_mapEventIndex_AsID.find(id) == m_mapEventIndex_AsID.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsID[id]; event.vArg.push_back(szArg0); event.vArg.push_back(szArg1); CHAR szTemp[32]; _snprintf(szTemp, 32, "%d", nArg2); event.vArg.push_back( szTemp ); _PushEvent(event); }
VOID CEventSystem::PushEvent(STRING& eventName, LPCTSTR szArg0, LPCTSTR szArg1, INT nArg2 ) { if(m_mapEventIndex_AsName.find(eventName) == m_mapEventIndex_AsName.end()) return; EVENT event; event.pEventDef=m_mapEventIndex_AsName[eventName]; event.vArg.push_back(szArg0); event.vArg.push_back(szArg1); CHAR szTemp[32]; _snprintf(szTemp, 32, "%d", nArg2); event.vArg.push_back( szTemp ); _PushEvent(event); }
void MsgEventManager::PushEvent(MsgEvent& Event) { _PushEvent( Event ); }