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/client/c_te_beamspline.cpp | |
| 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/client/c_te_beamspline.cpp')
| -rw-r--r-- | mp/src/game/client/c_te_beamspline.cpp | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/mp/src/game/client/c_te_beamspline.cpp b/mp/src/game/client/c_te_beamspline.cpp index 252bc382..443b23c3 100644 --- a/mp/src/game/client/c_te_beamspline.cpp +++ b/mp/src/game/client/c_te_beamspline.cpp @@ -1,86 +1,86 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "c_basetempentity.h"
-#include "tier0/vprof.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-#define MAX_SPLINE_POINTS 16
-//-----------------------------------------------------------------------------
-// Purpose: BeamSpline TE
-//-----------------------------------------------------------------------------
-class C_TEBeamSpline : public C_BaseTempEntity
-{
-public:
- DECLARE_CLASS( C_TEBeamSpline, C_BaseTempEntity );
- DECLARE_CLIENTCLASS();
-
- C_TEBeamSpline( void );
- virtual ~C_TEBeamSpline( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
-public:
- Vector m_vecPoints[ MAX_SPLINE_POINTS ];
- int m_nPoints;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBeamSpline::C_TEBeamSpline( void )
-{
- int i;
- for ( i = 0; i < MAX_SPLINE_POINTS; i++ )
- {
- m_vecPoints[ i ].Init();
- }
- m_nPoints = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBeamSpline::~C_TEBeamSpline( void )
-{
-}
-
-void TE_BeamSpline( IRecipientFilter& filter, float delay,
- int points, Vector* rgPoints )
-{
- DevMsg( 1, "Beam spline with %i points invoked\n", points );
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : bool -
-//-----------------------------------------------------------------------------
-void C_TEBeamSpline::PostDataUpdate( DataUpdateType_t updateType )
-{
- VPROF( "C_TEBeamSpline::PostDataUpdate" );
-
- DevMsg( 1, "Beam spline with %i points received\n", m_nPoints );
-}
-
-// Expose the TE to the engine.
-IMPLEMENT_CLIENTCLASS_EVENT( C_TEBeamSpline, DT_TEBeamSpline, CTEBeamSpline );
-
-BEGIN_RECV_TABLE_NOBASE(C_TEBeamSpline, DT_TEBeamSpline)
- RecvPropInt( RECVINFO( m_nPoints )),
- RecvPropArray(
- RecvPropVector( RECVINFO(m_vecPoints[0])),
- m_vecPoints)
-END_RECV_TABLE()
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "c_basetempentity.h" +#include "tier0/vprof.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +#define MAX_SPLINE_POINTS 16 +//----------------------------------------------------------------------------- +// Purpose: BeamSpline TE +//----------------------------------------------------------------------------- +class C_TEBeamSpline : public C_BaseTempEntity +{ +public: + DECLARE_CLASS( C_TEBeamSpline, C_BaseTempEntity ); + DECLARE_CLIENTCLASS(); + + C_TEBeamSpline( void ); + virtual ~C_TEBeamSpline( void ); + + virtual void PostDataUpdate( DataUpdateType_t updateType ); + +public: + Vector m_vecPoints[ MAX_SPLINE_POINTS ]; + int m_nPoints; +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBeamSpline::C_TEBeamSpline( void ) +{ + int i; + for ( i = 0; i < MAX_SPLINE_POINTS; i++ ) + { + m_vecPoints[ i ].Init(); + } + m_nPoints = 0; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBeamSpline::~C_TEBeamSpline( void ) +{ +} + +void TE_BeamSpline( IRecipientFilter& filter, float delay, + int points, Vector* rgPoints ) +{ + DevMsg( 1, "Beam spline with %i points invoked\n", points ); +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : bool - +//----------------------------------------------------------------------------- +void C_TEBeamSpline::PostDataUpdate( DataUpdateType_t updateType ) +{ + VPROF( "C_TEBeamSpline::PostDataUpdate" ); + + DevMsg( 1, "Beam spline with %i points received\n", m_nPoints ); +} + +// Expose the TE to the engine. +IMPLEMENT_CLIENTCLASS_EVENT( C_TEBeamSpline, DT_TEBeamSpline, CTEBeamSpline ); + +BEGIN_RECV_TABLE_NOBASE(C_TEBeamSpline, DT_TEBeamSpline) + RecvPropInt( RECVINFO( m_nPoints )), + RecvPropArray( + RecvPropVector( RECVINFO(m_vecPoints[0])), + m_vecPoints) +END_RECV_TABLE() + |