1
0
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:
Scott Ehlert
2010-07-22 01:46:14 -05:00
commit c0a96ff1e8
3740 changed files with 1243478 additions and 0 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