diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/env_detail_controller.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/env_detail_controller.h')
| -rw-r--r-- | game/shared/env_detail_controller.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/game/shared/env_detail_controller.h b/game/shared/env_detail_controller.h new file mode 100644 index 0000000..d1e87bc --- /dev/null +++ b/game/shared/env_detail_controller.h @@ -0,0 +1,35 @@ +//========= 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(); |