Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.0 KiB

//========= Copyright <EFBFBD> 1996-2005, Valve Corporation, All rights reserved. ============//
5 years ago
//
// 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(
char *pVarName,
5 years ago
int offset,
int sizeofVar );
SendProp SendPropEHandle(
char *pVarName,
5 years ago
int offset,
int flags = 0,
int sizeofVar=SIZEOF_IGNORE,
5 years ago
SendVarProxyFn proxyFn=SendProxy_EHandleToInt );
SendProp SendPropTime(
char *pVarName,
5 years ago
int offset,
int sizeofVar=SIZEOF_IGNORE );
#if !defined( NO_ENTITY_PREDICTION ) && defined( USE_PREDICTABLEID )
5 years ago
SendProp SendPropPredictableId(
char *pVarName,
5 years ago
int offset,
int sizeofVar=SIZEOF_IGNORE );
#endif
SendProp SendPropIntWithMinusOneFlag(
char *pVarName,
5 years ago
int offset,
int bits,
5 years ago
int sizeofVar=SIZEOF_IGNORE,
SendVarProxyFn proxyFn=SendProxy_IntAddOne );
// Send a string_t as a string property.
SendProp SendPropStringT( char *pVarName, int offset, int sizeofVar );
5 years ago
//-----------------------------------------------------------------------------
// 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