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.

39 lines
926 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Shared data definition file for touch links
  4. //
  5. //=============================================================================//
  6. #ifndef TOUCHLINK_H
  7. #define TOUCHLINK_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // Purpose: for resolving touch/untouch pairs
  13. //-----------------------------------------------------------------------------
  14. enum touchlink_flags_t
  15. {
  16. FTOUCHLINK_START_TOUCH = 0x00000001,
  17. };
  18. struct touchlink_t
  19. {
  20. #if defined( CLIENT_DLL )
  21. C_BaseEntity *entityTouched;
  22. #else
  23. EHANDLE entityTouched;
  24. #endif
  25. int touchStamp;
  26. touchlink_t *nextLink;
  27. touchlink_t *prevLink;
  28. int flags;
  29. };
  30. // means this touchlink is managed external to the main physics system
  31. #define TOUCHSTAMP_EVENT_DRIVEN -1
  32. #endif // TOUCHLINK_H