From 39ed87570bdb2f86969d4be821c94b722dc71179 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Wed, 26 Jun 2013 15:22:04 -0700 Subject: First version of the SOurce SDK 2013 --- mp/src/public/dt_shared.cpp | 113 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 mp/src/public/dt_shared.cpp (limited to 'mp/src/public/dt_shared.cpp') diff --git a/mp/src/public/dt_shared.cpp b/mp/src/public/dt_shared.cpp new file mode 100644 index 00000000..8f2ab172 --- /dev/null +++ b/mp/src/public/dt_shared.cpp @@ -0,0 +1,113 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +#include "dt_shared.h" + +#if !defined (CLIENT_DLL) +#include "sendproxy.h" +#else +#include "recvproxy.h" +#endif + + +// ------------------------------------------------------------------------ // +// Just wrappers to make shared code look easier... +// ------------------------------------------------------------------------ // + +// Use these functions to setup your data tables. +DataTableProp PropFloat( + char *pVarName, // Variable name. + int offset, // Offset into container structure. + int sizeofVar, + int nBits, // Number of bits to use when encoding. + int flags, + float fLowValue, // For floating point, low and high values. + float fHighValue // High value. If HIGH_DEFAULT, it's (1<