//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #ifndef DATATABLE_SHARED_H #define DATATABLE_SHARED_H #ifdef _WIN32 #pragma once #endif #include "dt_common.h" // ------------------------------------------------------------------------ // // Client version // ------------------------------------------------------------------------ // #if defined (CLIENT_DLL) #include "dt_recv.h" #define PROPINFO(varName) RECVINFO(varName) #define PROPINFO_DT(varName) RECVINFO_DT(varName) #define PROPINFO_DT_NAME(varName, remoteVarName) RECVINFO_DTNAME(varName,remoteVarName) #define PROPINFO_NAME(varName,remoteVarName) RECVINFO_NAME(varName, remoteVarName) #define DataTableProp RecvProp #endif // ------------------------------------------------------------------------ // // Server version // ------------------------------------------------------------------------ // #if !defined (CLIENT_DLL) #include "dt_send.h" #define PROPINFO(varName) SENDINFO(varName) #define PROPINFO_DT(varName) SENDINFO_DT(varName) #define PROPINFO_DT_NAME(varName, remoteVarName) SENDINFO_DT_NAME(varName, remoteVarName) #define PROPINFO_NAME(varName,remoteVarName) SENDINFO_NAME(varName,remoteVarName) #define DataTableProp SendProp #endif // Use these functions to setup your data tables. DataTableProp PropFloat( char *pVarName, // Variable name. int offset, // Offset into container structure. int sizeofVar=SIZEOF_IGNORE, int nBits=32, // Number of bits to use when encoding. int flags=0, float fLowValue=0.0f, // For floating point, low and high values. float fHighValue=HIGH_DEFAULT // High value. If HIGH_DEFAULT, it's (1<