mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-07 10:38:23 +00:00
Update IGameEventManager2
This commit is contained in:
parent
dff278d1dd
commit
933bc88158
@ -178,7 +178,9 @@ public:
|
||||
virtual bool AddListener( IGameEventListener * listener, bool bIsServerSide ) = 0;
|
||||
|
||||
// removes a listener
|
||||
virtual void RemoveListener( IGameEventListener * listener) = 0;
|
||||
virtual void RemoveListener( IGameEventListener * listener ) = 0;
|
||||
|
||||
virtual void AddListenerGlobal( IGameEventListener2 * listener, bool bIsServerSide ) = 0;
|
||||
|
||||
// fires an global event, specific event data is stored in KeyValues
|
||||
// local listeners will receive the event instantly
|
||||
@ -196,6 +198,8 @@ public:
|
||||
// write/read event to/from bitbuffer
|
||||
virtual bool SerializeKeyValues( KeyValues *event, bf_write *buf, CGameEvent *eventtype = NULL ) = 0;
|
||||
virtual KeyValues *UnserializeKeyValue( bf_read *msg ) = 0; // create new KeyValues, must be deleted
|
||||
|
||||
virtual KeyValues *GetEventDataTypes( IGameEvent *event ) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user