summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_wearable_levelable_item.h
blob: b390252faf76135bbdbc56d380f840e267c627d9 (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
44
45
46
47
48
49
50
51
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//
//
//=============================================================================
#ifndef TF_WEARABLE_LEVELABLE_ITEM_H
#define TF_WEARABLE_LEVELABLE_ITEM_H
#ifdef _WIN32
#pragma once
#endif


#include "tf_item_wearable.h"

#ifdef CLIENT_DLL
#include "c_tf_player.h"

#else
#include "tf_player.h"
#endif

#ifdef CLIENT_DLL
#define CTFWearableLevelableItem C_TFWearableLevelableItem
#endif

#define LEVELABLE_ITEM_BODYGROUP_NAME	"level"
							   
//=============================================================================
//
// 
//
class CTFWearableLevelableItem : public CTFWearable
{
	DECLARE_CLASS( CTFWearableLevelableItem, CTFWearable );
public:
	DECLARE_NETWORKCLASS();
	DECLARE_DATADESC();

	CTFWearableLevelableItem();

	void IncrementLevel();
	void ResetLevel();

	uint GetLevel( void ){ return m_unLevel; }
private:

	CNetworkVar( uint, m_unLevel );
};


#endif // TF_WEARABLE_LEVELABLE_ITEM_H