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