mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-28 17:13:03 +00:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
//========= 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
|