mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 06:03:02 +00:00
1
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
//========= 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
|
||||
Reference in New Issue
Block a user