Counter Strike : Global Offensive Source Code
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.

56 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: implements various common send proxies
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef RECVPROXY_H
  8. #define RECVPROXY_H
  9. #include "dt_recv.h"
  10. class CRecvProxyData;
  11. // This converts the int stored in pData to an EHANDLE in pOut.
  12. void RecvProxy_IntToEHandle( const CRecvProxyData *pData, void *pStruct, void *pOut );
  13. void RecvProxy_IntToMoveParent( const CRecvProxyData *pData, void *pStruct, void *pOut );
  14. void RecvProxy_IntToColor32( const CRecvProxyData *pData, void *pStruct, void *pOut );
  15. void RecvProxy_IntSubOne( const CRecvProxyData *pData, void *pStruct, void *pOut );
  16. void RecvProxy_ShortSubOne( const CRecvProxyData *pData, void *pStruct, void *pOut );
  17. void RecvProxy_InterpolationAmountChanged( const CRecvProxyData *pData, void *pStruct, void *pOut );
  18. RecvProp RecvPropTime(
  19. char *pVarName,
  20. int offset,
  21. int sizeofVar=SIZEOF_IGNORE );
  22. #if !defined( NO_ENTITY_PREDICTION ) && defined( USE_PREDICTABLEID )
  23. RecvProp RecvPropPredictableId(
  24. char *pVarName,
  25. int offset,
  26. int sizeofVar=SIZEOF_IGNORE );
  27. #endif
  28. RecvProp RecvPropEHandle(
  29. char *pVarName,
  30. int offset,
  31. int sizeofVar=SIZEOF_IGNORE,
  32. RecvVarProxyFn proxyFn=RecvProxy_IntToEHandle );
  33. RecvProp RecvPropBool(
  34. char *pVarName,
  35. int offset,
  36. int sizeofVar );
  37. RecvProp RecvPropIntWithMinusOneFlag(
  38. char *pVarName,
  39. int offset,
  40. int sizeofVar=SIZEOF_IGNORE,
  41. RecvVarProxyFn proxyFn=RecvProxy_IntSubOne );
  42. #endif // RECVPROXY_H