summaryrefslogtreecommitdiff
path: root/game/shared/tf/baseobject_shared.h
blob: 9d3f632a0df618fac412f9be3807c0afa8570c09 (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
40
41
42
43
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef BASEOBJECT_SHARED_H
#define BASEOBJECT_SHARED_H
#ifdef _WIN32
#pragma once
#endif

#include "tf_shareddefs.h"

#if defined( CLIENT_DLL )
#define CBaseObject C_BaseObject
#endif

class CBaseObject;
typedef CHandle<CBaseObject>	ObjectHandle;
struct BuildPoint_t
{
	// If this is true, then objects are parented to the attachment point instead of 
	// parented to the entity's abs origin + angles. That way, they'll move if the 
	// attachment point animates.
	bool			m_bPutInAttachmentSpace;	

	int				m_iAttachmentNum;
	ObjectHandle	m_hObject;
	bool			m_bValidObjects[ OBJ_LAST ];
};

#define TF_OBJ_GROUND_CLEARANCE	32

// Shared header file for players
#if defined( CLIENT_DLL )
#include "c_baseobject.h"
#else
#include "tf_obj.h"
#endif

#endif // BASEOBJECT_SHARED_H