Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
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);
}
Ejemplo n.º 4
0
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);
}
Ejemplo n.º 5
0
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);
}
Ejemplo n.º 6
0
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);
}
Ejemplo n.º 7
0
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);
}
Ejemplo n.º 8
0
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);
}
Ejemplo n.º 9
0
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);
}
Ejemplo n.º 10
0
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);
}
Ejemplo n.º 11
0
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);
}
Ejemplo n.º 12
0
void  MsgEventManager::PushEvent(MsgEvent& Event)
{
    _PushEvent( Event );
}