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.

41 lines
853 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef BASE_TRANSMIT_PROXY_H
  7. #define BASE_TRANSMIT_PROXY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "ehandle.h"
  12. class CBaseEntity;
  13. class CBaseTransmitProxy
  14. {
  15. public:
  16. CBaseTransmitProxy( CBaseEntity *pEnt );
  17. virtual ~CBaseTransmitProxy();
  18. // Override this to control the ShouldTransmit behavior of whatever entity the proxy is attached to.
  19. // bPrevShouldTransmitResult is what the proxy's entity's ShouldTransmit() returned.
  20. virtual int ShouldTransmit( const CCheckTransmitInfo *pInfo, int nPrevShouldTransmitResult );
  21. void AddRef();
  22. void Release();
  23. private:
  24. EHANDLE m_hEnt;
  25. unsigned short m_refCount;
  26. };
  27. #endif // BASE_TRANSMIT_PROXY_H