mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 06:03:02 +00:00
1
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $Workfile: $
|
||||
// $Date: $
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
#if !defined( EVENT_TEMPENTITY_TESTER_H )
|
||||
#define EVENT_TEMPENTITY_TESTER_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
class CBaseTempEntity;
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: A server object that is used to test all registered temp entities
|
||||
//-----------------------------------------------------------------------------
|
||||
class CTempEntTester : public CPointEntity
|
||||
{
|
||||
public:
|
||||
DECLARE_CLASS( CTempEntTester, CPointEntity );
|
||||
|
||||
void Spawn( void );
|
||||
void Think( void );
|
||||
|
||||
static CBaseEntity *Create( const Vector &vecOrigin, const QAngle &vecAngles, const char *lifetime, const char *single_te );
|
||||
private:
|
||||
// Current temp entity to test
|
||||
CBaseTempEntity *m_pCurrent;
|
||||
|
||||
// Lifetime
|
||||
float m_fLifeTime;
|
||||
|
||||
char m_szClass[ 64 ];
|
||||
};
|
||||
|
||||
#endif // EVENT_TEMPENTITY_TESTER_H
|
||||
Reference in New Issue
Block a user