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/EntityDissolve.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/EntityDissolve.h')
| -rw-r--r-- | mp/src/game/server/EntityDissolve.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/mp/src/game/server/EntityDissolve.h b/mp/src/game/server/EntityDissolve.h index 5e4e7bd8..ae9e8195 100644 --- a/mp/src/game/server/EntityDissolve.h +++ b/mp/src/game/server/EntityDissolve.h @@ -1,63 +1,63 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef ENTITYDISSOLVE_H
-#define ENTITYDISSOLVE_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-class CEntityDissolve : public CBaseEntity
-{
-public:
- DECLARE_SERVERCLASS();
- DECLARE_CLASS( CEntityDissolve, CBaseEntity );
-
- CEntityDissolve( void );
- ~CEntityDissolve( void );
-
- static CEntityDissolve *Create( CBaseEntity *pTarget, const char *pMaterialName,
- float flStartTime, int nDissolveType = 0, bool *pRagdollCreated = NULL );
- static CEntityDissolve *Create( CBaseEntity *pTarget, CBaseEntity *pSource );
-
- void Precache();
- void Spawn();
- void AttachToEntity( CBaseEntity *pTarget );
- void SetStartTime( float flStartTime );
- void SetDissolverOrigin( Vector vOrigin ) { m_vDissolverOrigin = vOrigin; }
- void SetMagnitude( int iMagnitude ){ m_nMagnitude = iMagnitude; }
- void SetDissolveType( int iType ) { m_nDissolveType = iType; }
-
- Vector GetDissolverOrigin( void )
- {
- Vector vReturn = m_vDissolverOrigin;
- return vReturn;
- }
- int GetMagnitude( void ) { return m_nMagnitude; }
- int GetDissolveType( void ) { return m_nDissolveType; }
-
- DECLARE_DATADESC();
-
- CNetworkVar( float, m_flStartTime );
- CNetworkVar( float, m_flFadeInStart );
- CNetworkVar( float, m_flFadeInLength );
- CNetworkVar( float, m_flFadeOutModelStart );
- CNetworkVar( float, m_flFadeOutModelLength );
- CNetworkVar( float, m_flFadeOutStart );
- CNetworkVar( float, m_flFadeOutLength );
-
-protected:
- void InputDissolve( inputdata_t &inputdata );
- void DissolveThink( void );
- void ElectrocuteThink( void );
-
- CNetworkVar( int, m_nDissolveType );
- CNetworkVector( m_vDissolverOrigin );
- CNetworkVar( int, m_nMagnitude );
-};
-
-#endif // ENTITYDISSOLVE_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef ENTITYDISSOLVE_H +#define ENTITYDISSOLVE_H + +#ifdef _WIN32 +#pragma once +#endif + +class CEntityDissolve : public CBaseEntity +{ +public: + DECLARE_SERVERCLASS(); + DECLARE_CLASS( CEntityDissolve, CBaseEntity ); + + CEntityDissolve( void ); + ~CEntityDissolve( void ); + + static CEntityDissolve *Create( CBaseEntity *pTarget, const char *pMaterialName, + float flStartTime, int nDissolveType = 0, bool *pRagdollCreated = NULL ); + static CEntityDissolve *Create( CBaseEntity *pTarget, CBaseEntity *pSource ); + + void Precache(); + void Spawn(); + void AttachToEntity( CBaseEntity *pTarget ); + void SetStartTime( float flStartTime ); + void SetDissolverOrigin( Vector vOrigin ) { m_vDissolverOrigin = vOrigin; } + void SetMagnitude( int iMagnitude ){ m_nMagnitude = iMagnitude; } + void SetDissolveType( int iType ) { m_nDissolveType = iType; } + + Vector GetDissolverOrigin( void ) + { + Vector vReturn = m_vDissolverOrigin; + return vReturn; + } + int GetMagnitude( void ) { return m_nMagnitude; } + int GetDissolveType( void ) { return m_nDissolveType; } + + DECLARE_DATADESC(); + + CNetworkVar( float, m_flStartTime ); + CNetworkVar( float, m_flFadeInStart ); + CNetworkVar( float, m_flFadeInLength ); + CNetworkVar( float, m_flFadeOutModelStart ); + CNetworkVar( float, m_flFadeOutModelLength ); + CNetworkVar( float, m_flFadeOutStart ); + CNetworkVar( float, m_flFadeOutLength ); + +protected: + void InputDissolve( inputdata_t &inputdata ); + void DissolveThink( void ); + void ElectrocuteThink( void ); + + CNetworkVar( int, m_nDissolveType ); + CNetworkVector( m_vDissolverOrigin ); + CNetworkVar( int, m_nMagnitude ); +}; + +#endif // ENTITYDISSOLVE_H |