diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/shared/touchlink.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/shared/touchlink.h')
| -rw-r--r-- | sp/src/game/shared/touchlink.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sp/src/game/shared/touchlink.h b/sp/src/game/shared/touchlink.h new file mode 100644 index 00000000..c72cd66a --- /dev/null +++ b/sp/src/game/shared/touchlink.h @@ -0,0 +1,39 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Shared data definition file for touch links
+//
+//=============================================================================//
+
+#ifndef TOUCHLINK_H
+#define TOUCHLINK_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+//-----------------------------------------------------------------------------
+// Purpose: for resolving touch/untouch pairs
+//-----------------------------------------------------------------------------
+enum touchlink_flags_t
+{
+ FTOUCHLINK_START_TOUCH = 0x00000001,
+};
+
+struct touchlink_t
+{
+#if defined( CLIENT_DLL )
+ C_BaseEntity *entityTouched;
+#else
+ EHANDLE entityTouched;
+#endif
+ int touchStamp;
+ touchlink_t *nextLink;
+ touchlink_t *prevLink;
+ int flags;
+};
+
+// means this touchlink is managed external to the main physics system
+#define TOUCHSTAMP_EVENT_DRIVEN -1
+
+
+#endif // TOUCHLINK_H
|