Fix SDKHooks IEntityListener (#2138)

This commit is contained in:
Alienmario 2024-04-21 21:21:47 +02:00 committed by GitHub
parent 123ad7aab1
commit 7d78c141e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,11 +139,15 @@ class IEntityListener
{ {
public: public:
#if SOURCE_ENGINE == SE_BMS #if SOURCE_ENGINE == SE_BMS
virtual ~IEntityListener() {};
virtual void OnEntityPreSpawned( CBaseEntity *pEntity ) {}; virtual void OnEntityPreSpawned( CBaseEntity *pEntity ) {};
#endif #endif
virtual void OnEntityCreated( CBaseEntity *pEntity ) {}; virtual void OnEntityCreated( CBaseEntity *pEntity ) {};
virtual void OnEntitySpawned( CBaseEntity *pEntity ) {}; virtual void OnEntitySpawned( CBaseEntity *pEntity ) {};
virtual void OnEntityDeleted( CBaseEntity *pEntity ) {}; virtual void OnEntityDeleted( CBaseEntity *pEntity ) {};
#if SOURCE_ENGINE == SE_BMS
virtual void OnEntityFlagsChanged( CBaseEntity *pEntity, int nAddedFlags, int nRemovedFlags ) {};
#endif
}; };
class SDKHooks : class SDKHooks :