diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/server/sendproxy.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/sendproxy.h')
| -rw-r--r-- | mp/src/game/server/sendproxy.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mp/src/game/server/sendproxy.h b/mp/src/game/server/sendproxy.h new file mode 100644 index 00000000..cadb25e6 --- /dev/null +++ b/mp/src/game/server/sendproxy.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: implements various common send proxies
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef SENDPROXY_H
+#define SENDPROXY_H
+
+
+#include "dt_send.h"
+
+
+class DVariant;
+
+void SendProxy_Color32ToInt( const SendProp *pProp, const void *pStruct, const void *pData, DVariant *pOut, int iElement, int objectID );
+void SendProxy_EHandleToInt( const SendProp *pProp, const void *pStruct, const void *pVarData, DVariant *pOut, int iElement, int objectID );
+void SendProxy_IntAddOne( const SendProp *pProp, const void *pStruct, const void *pVarData, DVariant *pOut, int iElement, int objectID );
+void SendProxy_ShortAddOne( const SendProp *pProp, const void *pStruct, const void *pVarData, DVariant *pOut, int iElement, int objectID );
+
+SendProp SendPropBool(
+ const char *pVarName,
+ int offset,
+ int sizeofVar );
+
+SendProp SendPropEHandle(
+ const char *pVarName,
+ int offset,
+ int sizeofVar=SIZEOF_IGNORE,
+ int flags = 0,
+ SendVarProxyFn proxyFn=SendProxy_EHandleToInt );
+
+SendProp SendPropTime(
+ const char *pVarName,
+ int offset,
+ int sizeofVar=SIZEOF_IGNORE );
+
+#if !defined( NO_ENTITY_PREDICTION )
+SendProp SendPropPredictableId(
+ const char *pVarName,
+ int offset,
+ int sizeofVar=SIZEOF_IGNORE );
+#endif
+
+SendProp SendPropIntWithMinusOneFlag(
+ const char *pVarName,
+ int offset,
+ int sizeofVar=SIZEOF_IGNORE,
+ int bits=-1,
+ SendVarProxyFn proxyFn=SendProxy_IntAddOne );
+
+
+// Send a string_t as a string property.
+SendProp SendPropStringT( const char *pVarName, int offset, int sizeofVar );
+
+//-----------------------------------------------------------------------------
+// Purpose: Proxy that only sends data to team members
+//-----------------------------------------------------------------------------
+void* SendProxy_OnlyToTeam( const SendProp *pProp, const void *pStruct, const void *pVarData, CSendProxyRecipients *pRecipients, int objectID );
+
+
+#endif // SENDPROXY_H
|