Counter Strike : Global Offensive Source Code
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef _INCLUDED_C_ENV_AMBIENT_LIGHT_H
#define _INCLUDED_C_ENV_AMBIENT_LIGHT_H
#include "c_spatialentity.h"
//------------------------------------------------------------------------------
// Purpose : Ambient light controller entity with radial falloff
//------------------------------------------------------------------------------
class C_EnvAmbientLight : public C_SpatialEntityTemplate<Vector> { public: DECLARE_CLASS( C_EnvAmbientLight, C_SpatialEntityTemplate<Vector> ); DECLARE_CLIENTCLASS();
virtual void ApplyAccumulation( void ); virtual void ClientThink( void );
void SetColor( const Vector &vecColor, float flLerpTime = 0 ); Vector GetTargetColor() { return m_vecTargetColor * 255.0f; }
protected: virtual void AddToPersonalSpatialEntityMgr( void ); virtual void RemoveFromPersonalSpatialEntityMgr( void );
Vector m_vecStartColor; Vector m_vecTargetColor; CountdownTimer m_colorTimer; };
#endif // _INCLUDED_C_ENV_AMBIENT_LIGHT_H
|