From 7d74dffa8e7b27e45e98e3dc38b5c8320ea20836 Mon Sep 17 00:00:00 2001 From: number201724 Date: Mon, 8 Sep 2025 20:40:01 +0800 Subject: [PATCH] Update ISource2GameEntities --- public/eiface.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/public/eiface.h b/public/eiface.h index 8776a09e..89483b43 100644 --- a/public/eiface.h +++ b/public/eiface.h @@ -484,10 +484,10 @@ public: //----------------------------------------------------------------------------- // Purpose: Interface to get at server entities //----------------------------------------------------------------------------- -abstract_class ISource2GameEntities : public IAppSystem +abstract_class ISource2GameEntities : public IAppSystem //, public IEntityListener { public: - virtual ~ISource2GameEntities() {} + virtual Reset( bool bDestroyAndDelete = false ) = 0; // This sets a bit in pInfo for each edict in the list that wants to be transmitted to the // client specified in pInfo. @@ -500,15 +500,12 @@ public: // TERROR: Perform any PVS cleanup before a full update virtual void PrepareForFullUpdate( CEntityIndex nPlayerEntityIndex ) = 0; - - // Frees the entity attached to this edict - virtual void FreeContainingEntity( CEntityIndex nEntityIndex ) = 0; - - virtual bool GetWorldspaceCenter( CEntityIndex nEntityIndex, Vector *pCenter ) const = 0; - + virtual bool ShouldClientReceiveStringTableUserData( const INetworkStringTable *pTable, int stringNumber, const CCheckTransmitInfo *pInfo ) = 0; virtual void ResetChangeAccessorsSerialNumbersToZero() = 0; + + virtual bool GetWorldspaceCenter( CEntityIndex nEntityIndex, Vector *pCenter ) const = 0; }; #define INTERFACEVERSION_SERVERCONFIG "Source2ServerConfig001"