aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/point_template.h
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/point_template.h
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/point_template.h')
-rw-r--r--mp/src/game/server/point_template.h144
1 files changed, 72 insertions, 72 deletions
diff --git a/mp/src/game/server/point_template.h b/mp/src/game/server/point_template.h
index 53204e76..94e37424 100644
--- a/mp/src/game/server/point_template.h
+++ b/mp/src/game/server/point_template.h
@@ -1,72 +1,72 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Point entity used to create templates out of other entities or groups of entities
-//
-//=============================================================================//
-
-#ifndef POINT_TEMPLATE_H
-#define POINT_TEMPLATE_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#define MAX_NUM_TEMPLATES 16
-
-struct template_t
-{
- int iTemplateIndex;
- VMatrix matEntityToTemplate;
-
- DECLARE_SIMPLE_DATADESC();
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-class CPointTemplate : public CLogicalEntity
-{
- DECLARE_CLASS( CPointTemplate, CLogicalEntity );
-public:
- DECLARE_DATADESC();
-
- virtual void Spawn( void );
- virtual void Precache();
-
- // Template initialization
- void StartBuildingTemplates( void );
- void FinishBuildingTemplates( void );
-
- // Template Entity accessors
- int GetNumTemplateEntities( void );
- CBaseEntity *GetTemplateEntity( int iTemplateNumber );
- void AddTemplate( CBaseEntity *pEntity, const char *pszMapData, int nLen );
- bool ShouldRemoveTemplateEntities( void );
- bool AllowNameFixup();
-
- // Templates accessors
- int GetNumTemplates( void );
- int GetTemplateIndexForTemplate( int iTemplate );
-
- // Template instancing
- bool CreateInstance( const Vector &vecOrigin, const QAngle &vecAngles, CUtlVector<CBaseEntity*> *pEntities );
-
- // Inputs
- void InputForceSpawn( inputdata_t &inputdata );
-
- virtual void PerformPrecache();
-
-private:
- string_t m_iszTemplateEntityNames[MAX_NUM_TEMPLATES];
-
- // List of map entities this template targets. Built inside our Spawn().
- // It's only valid between Spawn() & Activate(), because the map entity parsing
- // code removes all the entities in it once it finishes turning them into templates.
- CUtlVector< CBaseEntity * > m_hTemplateEntities;
-
- // List of templates, generated from our template entities.
- CUtlVector< template_t > m_hTemplates;
-
- COutputEvent m_pOutputOnSpawned;
-};
-
-#endif // POINT_TEMPLATE_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Point entity used to create templates out of other entities or groups of entities
+//
+//=============================================================================//
+
+#ifndef POINT_TEMPLATE_H
+#define POINT_TEMPLATE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#define MAX_NUM_TEMPLATES 16
+
+struct template_t
+{
+ int iTemplateIndex;
+ VMatrix matEntityToTemplate;
+
+ DECLARE_SIMPLE_DATADESC();
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+class CPointTemplate : public CLogicalEntity
+{
+ DECLARE_CLASS( CPointTemplate, CLogicalEntity );
+public:
+ DECLARE_DATADESC();
+
+ virtual void Spawn( void );
+ virtual void Precache();
+
+ // Template initialization
+ void StartBuildingTemplates( void );
+ void FinishBuildingTemplates( void );
+
+ // Template Entity accessors
+ int GetNumTemplateEntities( void );
+ CBaseEntity *GetTemplateEntity( int iTemplateNumber );
+ void AddTemplate( CBaseEntity *pEntity, const char *pszMapData, int nLen );
+ bool ShouldRemoveTemplateEntities( void );
+ bool AllowNameFixup();
+
+ // Templates accessors
+ int GetNumTemplates( void );
+ int GetTemplateIndexForTemplate( int iTemplate );
+
+ // Template instancing
+ bool CreateInstance( const Vector &vecOrigin, const QAngle &vecAngles, CUtlVector<CBaseEntity*> *pEntities );
+
+ // Inputs
+ void InputForceSpawn( inputdata_t &inputdata );
+
+ virtual void PerformPrecache();
+
+private:
+ string_t m_iszTemplateEntityNames[MAX_NUM_TEMPLATES];
+
+ // List of map entities this template targets. Built inside our Spawn().
+ // It's only valid between Spawn() & Activate(), because the map entity parsing
+ // code removes all the entities in it once it finishes turning them into templates.
+ CUtlVector< CBaseEntity * > m_hTemplateEntities;
+
+ // List of templates, generated from our template entities.
+ CUtlVector< template_t > m_hTemplates;
+
+ COutputEvent m_pOutputOnSpawned;
+};
+
+#endif // POINT_TEMPLATE_H