diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/touchlink.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/touchlink.h')
| -rw-r--r-- | game/shared/touchlink.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/game/shared/touchlink.h b/game/shared/touchlink.h new file mode 100644 index 0000000..5bb115d --- /dev/null +++ b/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 |