diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/server/env_player_surface_trigger.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/server/env_player_surface_trigger.h')
| -rw-r--r-- | mp/src/game/server/env_player_surface_trigger.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/mp/src/game/server/env_player_surface_trigger.h b/mp/src/game/server/env_player_surface_trigger.h index e5f9d787..96eb0810 100644 --- a/mp/src/game/server/env_player_surface_trigger.h +++ b/mp/src/game/server/env_player_surface_trigger.h @@ -1,49 +1,49 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef ENV_PLAYER_SURFACE_TRIGGER_H
-#define ENV_PLAYER_SURFACE_TRIGGER_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "baseentity.h"
-#include "entityoutput.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Entity that fires outputs whenever the player stands on a different surface
-//-----------------------------------------------------------------------------
-class CEnvPlayerSurfaceTrigger : public CPointEntity
-{
- DECLARE_CLASS( CEnvPlayerSurfaceTrigger, CPointEntity );
-public:
- DECLARE_DATADESC();
-
- ~CEnvPlayerSurfaceTrigger( void );
- void Spawn( void );
- void OnRestore( void );
-
- // Main interface to all surface triggers
- static void SetPlayerSurface( CBasePlayer *pPlayer, char gameMaterial );
-
- void UpdateMaterialThink( void );
-
-private:
- void PlayerSurfaceChanged( CBasePlayer *pPlayer, char gameMaterial );
- void InputDisable( inputdata_t &inputdata );
- void InputEnable( inputdata_t &inputdata );
-
-private:
- int m_iTargetGameMaterial;
- int m_iCurrentGameMaterial;
- bool m_bDisabled;
-
- // Outputs
- COutputEvent m_OnSurfaceChangedToTarget;
- COutputEvent m_OnSurfaceChangedFromTarget;
-};
-
-#endif // ENV_PLAYER_SURFACE_TRIGGER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef ENV_PLAYER_SURFACE_TRIGGER_H +#define ENV_PLAYER_SURFACE_TRIGGER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "baseentity.h" +#include "entityoutput.h" + +//----------------------------------------------------------------------------- +// Purpose: Entity that fires outputs whenever the player stands on a different surface +//----------------------------------------------------------------------------- +class CEnvPlayerSurfaceTrigger : public CPointEntity +{ + DECLARE_CLASS( CEnvPlayerSurfaceTrigger, CPointEntity ); +public: + DECLARE_DATADESC(); + + ~CEnvPlayerSurfaceTrigger( void ); + void Spawn( void ); + void OnRestore( void ); + + // Main interface to all surface triggers + static void SetPlayerSurface( CBasePlayer *pPlayer, char gameMaterial ); + + void UpdateMaterialThink( void ); + +private: + void PlayerSurfaceChanged( CBasePlayer *pPlayer, char gameMaterial ); + void InputDisable( inputdata_t &inputdata ); + void InputEnable( inputdata_t &inputdata ); + +private: + int m_iTargetGameMaterial; + int m_iCurrentGameMaterial; + bool m_bDisabled; + + // Outputs + COutputEvent m_OnSurfaceChangedToTarget; + COutputEvent m_OnSurfaceChangedFromTarget; +}; + +#endif // ENV_PLAYER_SURFACE_TRIGGER_H |