mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
added getCurrentMsgType member
This commit is contained in:
parent
b9c9e9d100
commit
7d13e8cd01
@ -117,6 +117,7 @@ EventsMngr::EventsMngr()
|
||||
{
|
||||
m_ParseVault = NULL;
|
||||
m_ParseVaultSize = 0;
|
||||
m_CurrentMsgType = -1;
|
||||
clearEvents();
|
||||
}
|
||||
|
||||
@ -204,6 +205,8 @@ void EventsMngr::parserInit(int msg_type, float* timer, CPlayer* pPlayer, int in
|
||||
if (msg_type < 0 || msg_type > MAX_AMX_REG_MSG)
|
||||
return;
|
||||
|
||||
m_CurrentMsgType = msg_type;
|
||||
|
||||
m_ParseNotDone = false;
|
||||
m_Timer = timer;
|
||||
|
||||
@ -427,6 +430,7 @@ void EventsMngr::executeEvents()
|
||||
}
|
||||
#endif // #ifdef ENABLEEXEPTIONS
|
||||
|
||||
m_CurrentMsgType = -1;
|
||||
m_ParseFun = NULL;
|
||||
}
|
||||
|
||||
@ -531,3 +535,8 @@ int EventsMngr::getEventId(const char* msg)
|
||||
// find the id of the message
|
||||
return pos = GET_USER_MSG_ID(PLID, msg , 0 );
|
||||
}
|
||||
|
||||
int EventsMngr::getCurrentMsgType()
|
||||
{
|
||||
return m_CurrentMsgType;
|
||||
}
|
||||
|
@ -132,6 +132,7 @@ private:
|
||||
|
||||
ClEvent* getValidEvent(ClEvent* a );
|
||||
|
||||
int m_CurrentMsgType;
|
||||
public:
|
||||
EventsMngr();
|
||||
~EventsMngr();
|
||||
@ -150,6 +151,7 @@ public:
|
||||
float getArgFloat(int a) const;
|
||||
void clearEvents(void);
|
||||
static int getEventId( const char* msg );
|
||||
int getCurrentMsgType();
|
||||
};
|
||||
|
||||
#endif // #ifdef __CEVENTS_H__
|
||||
|
Loading…
Reference in New Issue
Block a user