mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-07 09:43:40 +08:00
32 lines
671 B
C++
32 lines
671 B
C++
#ifndef _INCLUDED_C_ASW_DYNAMIC_LIGHT_H
|
|
#define _INCLUDED_C_ASW_DYNAMIC_LIGHT_H
|
|
|
|
class C_ASW_DynamicLight : public C_BaseEntity
|
|
{
|
|
public:
|
|
DECLARE_CLASS( C_ASW_DynamicLight, C_BaseEntity );
|
|
DECLARE_CLIENTCLASS();
|
|
|
|
C_ASW_DynamicLight();
|
|
virtual ~C_ASW_DynamicLight();
|
|
|
|
public:
|
|
void OnDataChanged(DataUpdateType_t updateType);
|
|
bool ShouldDraw();
|
|
void ClientThink( void );
|
|
|
|
unsigned char m_Flags;
|
|
unsigned char m_LightStyle;
|
|
|
|
float m_Radius;
|
|
int m_Exponent;
|
|
float m_InnerAngle;
|
|
float m_OuterAngle;
|
|
float m_SpotRadius;
|
|
|
|
private:
|
|
dlight_t* m_pDynamicLight;
|
|
dlight_t* m_pSpotlightEnd;
|
|
};
|
|
|
|
#endif // _INCLUDED_C_ASW_DYNAMIC_LIGHT_H
|