From 150114424dbd0f79344d918f7fb919cc7d6d77a8 Mon Sep 17 00:00:00 2001 From: Ayuto Date: Fri, 12 Jun 2015 16:29:39 +0200 Subject: [PATCH] Updated vtable of IServerTools --- public/toolframework/itoolentity.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/toolframework/itoolentity.h b/public/toolframework/itoolentity.h index 63fce558..77d1a89b 100644 --- a/public/toolframework/itoolentity.h +++ b/public/toolframework/itoolentity.h @@ -162,6 +162,8 @@ public: //----------------------------------------------------------------------------- // Purpose: Interface from engine to tools for manipulating entities //----------------------------------------------------------------------------- +class CEntityRespawnInfo; + class IServerTools : public IBaseInterface { public: @@ -187,12 +189,19 @@ public: virtual void *CreateEntityByName( const char *szClassName ) = 0; virtual void DispatchSpawn( void *pEntity ) = 0; + virtual bool DestroyEntityByHammerId(int iHammerId) = 0; + virtual void RespawnEntitiesWithEdits(CEntityRespawnInfo * pInfo, int iUnk1) = 0; + // This reloads a portion or all of a particle definition file. // It's up to the server to decide if it cares about this file // Use a UtlBuffer to crack the data virtual void ReloadParticleDefintions( const char *pFileName, const void *pBufData, int nLen ) = 0; virtual void AddOriginToPVS( const Vector &org ) = 0; + + virtual void MoveEngineViewTo( const Vector &vPos, const QAngle &vAngles ) = 0; + // Same like DestroyEntityByHammerId, but doesn't tell you if the entity was removed. + virtual void RemoveEntity(int iHammerId) = 0; }; #define VSERVERTOOLS_INTERFACE_VERSION "VSERVERTOOLS001"