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.
48 lines
1.2 KiB
48 lines
1.2 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: |
|
// |
|
//=============================================================================// |
|
|
|
#ifndef LIGHTS_H |
|
#define LIGHTS_H |
|
#ifdef _WIN32 |
|
#pragma once |
|
#endif |
|
|
|
//----------------------------------------------------------------------------- |
|
// Purpose: |
|
//----------------------------------------------------------------------------- |
|
class CLight : public CPointEntity |
|
{ |
|
public: |
|
DECLARE_CLASS( CLight, CPointEntity ); |
|
|
|
bool KeyValue( const char *szKeyName, const char *szValue ); |
|
void Spawn( void ); |
|
void FadeThink( void ); |
|
void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ); |
|
|
|
void TurnOn( void ); |
|
void TurnOff( void ); |
|
void Toggle( void ); |
|
|
|
// Input handlers |
|
void InputSetPattern( inputdata_t &inputdata ); |
|
void InputFadeToPattern( inputdata_t &inputdata ); |
|
|
|
void InputToggle( inputdata_t &inputdata ); |
|
void InputTurnOn( inputdata_t &inputdata ); |
|
void InputTurnOff( inputdata_t &inputdata ); |
|
|
|
DECLARE_DATADESC(); |
|
|
|
private: |
|
int m_iStyle; |
|
int m_iDefaultStyle; |
|
string_t m_iszPattern; |
|
char m_iCurrentFade; |
|
char m_iTargetFade; |
|
}; |
|
|
|
#endif // LIGHTS_H
|
|
|