mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
|
||
|
#ifdef CLIENT_DLL
|
||
|
#define CEnvDetailController C_EnvDetailController
|
||
|
#endif // CLIENT_DLL
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Implementation of the class that controls detail prop fade distances
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CEnvDetailController : public CBaseEntity
|
||
|
{
|
||
|
public:
|
||
|
DECLARE_CLASS( CEnvDetailController, CBaseEntity );
|
||
|
DECLARE_NETWORKCLASS();
|
||
|
|
||
|
CEnvDetailController();
|
||
|
virtual ~CEnvDetailController();
|
||
|
|
||
|
#ifndef CLIENT_DLL
|
||
|
virtual bool KeyValue( const char *szKeyName, const char *szValue );
|
||
|
#endif // !CLIENT_DLL
|
||
|
|
||
|
CNetworkVar( float, m_flFadeStartDist );
|
||
|
CNetworkVar( float, m_flFadeEndDist );
|
||
|
|
||
|
// ALWAYS transmit to all clients.
|
||
|
virtual int UpdateTransmitState( void );
|
||
|
};
|
||
|
|
||
|
CEnvDetailController * GetDetailController();
|