summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_item.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/tf/tf_item.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/tf/tf_item.h')
-rw-r--r--game/shared/tf/tf_item.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/game/shared/tf/tf_item.h b/game/shared/tf/tf_item.h
new file mode 100644
index 0000000..2700599
--- /dev/null
+++ b/game/shared/tf/tf_item.h
@@ -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 \ No newline at end of file