mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Correct IGameEventManager2 (Un)Serialize arg types
This commit is contained in:
parent
6eeeb874c4
commit
4b31db7505
@ -23,6 +23,8 @@
|
||||
#include "entity2/entityinstance.h"
|
||||
|
||||
class CMsgSource1LegacyGameEvent;
|
||||
template<typename PROTO_TYPE>
|
||||
class CNetMessagePB;
|
||||
class CPlayerSlot;
|
||||
class CBasePlayer;
|
||||
class CEntityIndex;
|
||||
@ -182,8 +184,8 @@ public:
|
||||
virtual void FreeEvent( IGameEvent *event ) = 0;
|
||||
|
||||
// write/read event to/from bitbuffer
|
||||
virtual bool SerializeEvent( IGameEvent *event, CMsgSource1LegacyGameEvent *ev ) = 0;
|
||||
virtual IGameEvent *UnserializeEvent( const CMsgSource1LegacyGameEvent &ev ) = 0; // create new KeyValues, must be deleted
|
||||
virtual bool SerializeEvent( IGameEvent *event, CNetMessagePB<CMsgSource1LegacyGameEvent> *ev ) = 0;
|
||||
virtual IGameEvent *UnserializeEvent( const CNetMessagePB<CMsgSource1LegacyGameEvent> &ev ) = 0; // create new KeyValues, must be deleted
|
||||
|
||||
virtual int LookupEventId( const char *name ) = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user