aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/shared/touchlink.h
blob: 5bb115de773762a3389bef06b2dd17c7c691d5ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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