1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
|