Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
991 B

5 years ago
//========= 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