2023-10-03 14:23:56 +00:00
|
|
|
|
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
2020-04-22 16:56:21 +00:00
|
|
|
|
//
|
|
|
|
|
// 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
|