1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00

Actually update IGameEventManager2, not IGameEventManager

This commit is contained in:
Dr!fter 2016-10-06 23:18:04 -04:00
parent 933bc88158
commit 3d75d82623

View File

@ -125,6 +125,8 @@ public:
// removes a listener
virtual void RemoveListener( IGameEventListener2 *listener) = 0;
virtual void AddListenerGlobal( IGameEventListener2 * listener, bool bIsServerSide ) = 0;
// create an event by name, but doesn't fire it. returns NULL is event is not
// known or no listener is registered for it. bForce forces the creation even if no listener is active
@ -145,6 +147,8 @@ public:
// write/read event to/from bitbuffer
virtual bool SerializeEvent( IGameEvent *event, bf_write *buf ) = 0;
virtual IGameEvent *UnserializeEvent( bf_read *buf ) = 0; // create new KeyValues, must be deleted
virtual KeyValues *GetEventDataTypes( IGameEvent *event ) = 0;
};
// the old game event manager interface, don't use it. Rest is legacy support:
@ -179,8 +183,6 @@ public:
// removes a listener
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
@ -198,8 +200,6 @@ 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;
};