aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/sprite_perfmonitor.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/server/sprite_perfmonitor.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/server/sprite_perfmonitor.cpp')
-rw-r--r--mp/src/game/server/sprite_perfmonitor.cpp190
1 files changed, 95 insertions, 95 deletions
diff --git a/mp/src/game/server/sprite_perfmonitor.cpp b/mp/src/game/server/sprite_perfmonitor.cpp
index 83304e42..0e42b04e 100644
--- a/mp/src/game/server/sprite_perfmonitor.cpp
+++ b/mp/src/game/server/sprite_perfmonitor.cpp
@@ -1,95 +1,95 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: an entity which turns on and off counting and display of the particle
-// performance metric
-//
-//=============================================================================
-
-#include "cbase.h"
-#include "baseentity.h"
-#include "entityoutput.h"
-#include "convar.h"
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Entity that particle performance measuring
-//-----------------------------------------------------------------------------
-class CParticlePerformanceMonitor : public CPointEntity
-{
- DECLARE_CLASS( CParticlePerformanceMonitor, CPointEntity );
-public:
- DECLARE_DATADESC();
- DECLARE_SERVERCLASS();
-
- void Spawn( void );
- int UpdateTransmitState( void );
-
- // Inputs
- void InputTurnOnDisplay( inputdata_t &inputdata );
- void InputTurnOffDisplay( inputdata_t &inputdata );
- void InputStartMeasuring( inputdata_t &inputdata );
- void InputStopMeasuring( inputdata_t &inputdata );
-
-private:
- CNetworkVar( bool, m_bDisplayPerf );
- CNetworkVar( bool, m_bMeasurePerf );
-};
-
-LINK_ENTITY_TO_CLASS( env_particle_performance_monitor, CParticlePerformanceMonitor );
-
-BEGIN_DATADESC( CParticlePerformanceMonitor )
- DEFINE_FIELD( m_bDisplayPerf, FIELD_BOOLEAN ),
- DEFINE_FIELD( m_bMeasurePerf, FIELD_BOOLEAN ),
-
- // Inputs
- DEFINE_INPUTFUNC( FIELD_VOID, "TurnOnDisplay", InputTurnOnDisplay ),
- DEFINE_INPUTFUNC( FIELD_VOID, "TurnOffDisplay", InputTurnOffDisplay ),
- DEFINE_INPUTFUNC( FIELD_VOID, "StartMeasuring", InputStartMeasuring ),
- DEFINE_INPUTFUNC( FIELD_VOID, "StopMeasuring", InputStopMeasuring ),
-END_DATADESC()
-
-IMPLEMENT_SERVERCLASS_ST( CParticlePerformanceMonitor, DT_ParticlePerformanceMonitor )
- SendPropInt( SENDINFO(m_bDisplayPerf), 1, SPROP_UNSIGNED ),
- SendPropInt( SENDINFO(m_bMeasurePerf), 1, SPROP_UNSIGNED ),
-END_SEND_TABLE()
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-void CParticlePerformanceMonitor::Spawn( void )
-{
- SetSolid( SOLID_NONE );
- SetMoveType( MOVETYPE_NONE );
- m_bDisplayPerf = false;
- m_bMeasurePerf = false;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-int CParticlePerformanceMonitor::UpdateTransmitState()
-{
- return SetTransmitState( FL_EDICT_ALWAYS );
-}
-
-void CParticlePerformanceMonitor::InputTurnOnDisplay( inputdata_t &inputdata )
-{
- m_bDisplayPerf = true;
-}
-
-void CParticlePerformanceMonitor::InputTurnOffDisplay( inputdata_t &inputdata )
-{
- m_bDisplayPerf = false;
-}
-
-void CParticlePerformanceMonitor::InputStartMeasuring( inputdata_t &inputdata )
-{
- m_bMeasurePerf = true;
-}
-
-void CParticlePerformanceMonitor::InputStopMeasuring( inputdata_t &inputdata )
-{
- m_bMeasurePerf = false;
-}
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: an entity which turns on and off counting and display of the particle
+// performance metric
+//
+//=============================================================================
+
+#include "cbase.h"
+#include "baseentity.h"
+#include "entityoutput.h"
+#include "convar.h"
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Entity that particle performance measuring
+//-----------------------------------------------------------------------------
+class CParticlePerformanceMonitor : public CPointEntity
+{
+ DECLARE_CLASS( CParticlePerformanceMonitor, CPointEntity );
+public:
+ DECLARE_DATADESC();
+ DECLARE_SERVERCLASS();
+
+ void Spawn( void );
+ int UpdateTransmitState( void );
+
+ // Inputs
+ void InputTurnOnDisplay( inputdata_t &inputdata );
+ void InputTurnOffDisplay( inputdata_t &inputdata );
+ void InputStartMeasuring( inputdata_t &inputdata );
+ void InputStopMeasuring( inputdata_t &inputdata );
+
+private:
+ CNetworkVar( bool, m_bDisplayPerf );
+ CNetworkVar( bool, m_bMeasurePerf );
+};
+
+LINK_ENTITY_TO_CLASS( env_particle_performance_monitor, CParticlePerformanceMonitor );
+
+BEGIN_DATADESC( CParticlePerformanceMonitor )
+ DEFINE_FIELD( m_bDisplayPerf, FIELD_BOOLEAN ),
+ DEFINE_FIELD( m_bMeasurePerf, FIELD_BOOLEAN ),
+
+ // Inputs
+ DEFINE_INPUTFUNC( FIELD_VOID, "TurnOnDisplay", InputTurnOnDisplay ),
+ DEFINE_INPUTFUNC( FIELD_VOID, "TurnOffDisplay", InputTurnOffDisplay ),
+ DEFINE_INPUTFUNC( FIELD_VOID, "StartMeasuring", InputStartMeasuring ),
+ DEFINE_INPUTFUNC( FIELD_VOID, "StopMeasuring", InputStopMeasuring ),
+END_DATADESC()
+
+IMPLEMENT_SERVERCLASS_ST( CParticlePerformanceMonitor, DT_ParticlePerformanceMonitor )
+ SendPropInt( SENDINFO(m_bDisplayPerf), 1, SPROP_UNSIGNED ),
+ SendPropInt( SENDINFO(m_bMeasurePerf), 1, SPROP_UNSIGNED ),
+END_SEND_TABLE()
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+void CParticlePerformanceMonitor::Spawn( void )
+{
+ SetSolid( SOLID_NONE );
+ SetMoveType( MOVETYPE_NONE );
+ m_bDisplayPerf = false;
+ m_bMeasurePerf = false;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+int CParticlePerformanceMonitor::UpdateTransmitState()
+{
+ return SetTransmitState( FL_EDICT_ALWAYS );
+}
+
+void CParticlePerformanceMonitor::InputTurnOnDisplay( inputdata_t &inputdata )
+{
+ m_bDisplayPerf = true;
+}
+
+void CParticlePerformanceMonitor::InputTurnOffDisplay( inputdata_t &inputdata )
+{
+ m_bDisplayPerf = false;
+}
+
+void CParticlePerformanceMonitor::InputStartMeasuring( inputdata_t &inputdata )
+{
+ m_bMeasurePerf = true;
+}
+
+void CParticlePerformanceMonitor::InputStopMeasuring( inputdata_t &inputdata )
+{
+ m_bMeasurePerf = false;
+}
+