Files
hl2_src-leak-2017/src/game/shared/tf/tf_item.h
BotoX 60f625f414 import hl2_src from full.7z
source: magnet:?xt=urn:btih:21DDA6847DDE983F2F8063739249D2D1D09A5DDA
2020-12-25 16:26:23 +01:00

48 lines
1.0 KiB
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
//
//=============================================================================//
#ifndef TF_ITEM_H
#define TF_ITEM_H
#ifdef _WIN32
#pragma once
#endif
#ifdef CLIENT_DLL
#include "c_props.h"
#else
#include "props.h"
#endif
#ifdef CLIENT_DLL
#define CTFPlayer C_TFPlayer
#define CTFItem C_TFItem
#endif
class CTFPlayer;
//=============================================================================
//
// TF Item
//
class CTFItem : public CDynamicProp
{
public:
DECLARE_CLASS( CTFItem,CDynamicProp )
DECLARE_NETWORKCLASS();
// Unique identifier.
virtual unsigned int GetItemID() const;
// Pick up and drop.
virtual void PickUp( CTFPlayer *pPlayer, bool bInvisible );
virtual void Drop( CTFPlayer *pPlayer, bool bVisible, bool bThrown = false, bool bMessage = true );
#ifdef CLIENT_DLL
virtual bool ShouldDraw();
virtual ShadowType_t ShadowCastType();
virtual bool ShouldHideGlowEffect( void ) { return false; }
#endif
};
#endif // TF_ITEM_H