1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/game/server/lights.h

49 lines
1.2 KiB
C
Raw Normal View History

2013-06-27 06:22:04 +08:00
//========= 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