aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/sdk/sdk_team.cpp
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/sdk/sdk_team.cpp
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/sdk/sdk_team.cpp')
-rw-r--r--sp/src/game/server/sdk/sdk_team.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/sp/src/game/server/sdk/sdk_team.cpp b/sp/src/game/server/sdk/sdk_team.cpp
new file mode 100644
index 00000000..27e1fdb2
--- /dev/null
+++ b/sp/src/game/server/sdk/sdk_team.cpp
@@ -0,0 +1,40 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Team management class. Contains all the details for a specific team
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "sdk_team.h"
+#include "entitylist.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+
+// Datatable
+IMPLEMENT_SERVERCLASS_ST(CSDKTeam, DT_SDKTeam)
+END_SEND_TABLE()
+
+LINK_ENTITY_TO_CLASS( sdk_team_manager, CSDKTeam );
+
+//-----------------------------------------------------------------------------
+// Purpose: Get a pointer to the specified TF team manager
+//-----------------------------------------------------------------------------
+CSDKTeam *GetGlobalSDKTeam( int iIndex )
+{
+ return (CSDKTeam*)GetGlobalTeam( iIndex );
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Needed because this is an entity, but should never be used
+//-----------------------------------------------------------------------------
+void CSDKTeam::Init( const char *pName, int iNumber )
+{
+ BaseClass::Init( pName, iNumber );
+
+ // Only detect changes every half-second.
+ NetworkProp()->SetUpdateInterval( 0.75f );
+}
+