From 3d75d826233c8af371ad5da01683be34e3544281 Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Thu, 6 Oct 2016 23:18:04 -0400 Subject: [PATCH] Actually update IGameEventManager2, not IGameEventManager --- public/igameevents.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/igameevents.h b/public/igameevents.h index 55a48379..0dca94ee 100644 --- a/public/igameevents.h +++ b/public/igameevents.h @@ -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; };