mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Added original SDK code for Alien Swarm.
This commit is contained in:
44
public/foundry/iserverfoundry.h
Normal file
44
public/foundry/iserverfoundry.h
Normal 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
|
Reference in New Issue
Block a user