source-engine-2018-hl2_src/game/server/lights.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

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