45 lines
1.6 KiB
C
45 lines
1.6 KiB
C
|
//====== 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
|