This commit is contained in:
nephacks
2025-06-04 03:22:50 +02:00
parent f234f23848
commit f12416cffd
14243 changed files with 6446499 additions and 26 deletions

View File

@@ -0,0 +1,44 @@
//====== Copyright <20> 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#ifndef ISERVERFOUNDRY_H
#define ISERVERFOUNDRY_H
#ifdef _WIN32
#pragma once
#endif
#include "interface.h"
//-----------------------------------------------------------------------------
// Purpose: exposed from Foundry (Hammer) to game DLL
//-----------------------------------------------------------------------------
class IServerFoundry : public IBaseInterface
{
public:
// This is used when you load a savegame and use certain Hammer entities on top of the savegame data.
virtual bool GetRestoredEntityReplacementData( int iHammerID, CUtlVector<char> &data ) = 0;
virtual void OnFinishedRestoreSavegame() = 0;
// Move Hammer's version of the entity.
virtual void MoveEntityTo( int nHammerID, const Vector &vPos, const QAngle &vAngles ) = 0;
// Move Hammer's 3D view to the specified position.
virtual void MoveHammerViewTo( const Vector &vPos, const QAngle &vAngles ) = 0;
// If the game is controlling the input, release it.
virtual void EngineGetMouseControl() = 0;
virtual void EngineReleaseMouseControl() = 0;
// Select the specified entities in Hammer.
virtual void SelectEntities( int *pHammerIDs, int nIDs ) = 0;
// Simulate a mouse click in the center of the 3D view.
virtual void SelectionClickInCenterOfView( const Vector &vPos, const QAngle &vAngles ) = 0;
};
#define VSERVERFOUNDRY_INTERFACE_VERSION "VSERVERFOUNDRY001"
#endif // ISERVERFOUNDRY_H