summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_item_system.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_system.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_system.h')
-rw-r--r--game/shared/tf/tf_item_system.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/game/shared/tf/tf_item_system.h b/game/shared/tf/tf_item_system.h
new file mode 100644
index 0000000..2cd8af3
--- /dev/null
+++ b/game/shared/tf/tf_item_system.h
@@ -0,0 +1,40 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef TF_ITEM_SYSTEM_H
+#define TF_ITEM_SYSTEM_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "econ_item_system.h"
+#include "tf_item_constants.h"
+
+//-----------------------------------------------------------------------------
+// Criteria used by the system to generate a base item for a slot in a class's loadout
+struct baseitemcriteria_t
+{
+ baseitemcriteria_t()
+ {
+ iClass = 0;
+ iSlot = LOADOUT_POSITION_INVALID;
+ }
+
+ int iClass;
+ int iSlot;
+};
+
+
+class CTFItemSystem : public CEconItemSystem
+{
+public:
+ // Select and return the base item definition index for a class's load-out slot
+ virtual item_definition_index_t GenerateBaseItem( baseitemcriteria_t *pCriteria );
+};
+
+CTFItemSystem *TFItemSystem( void );
+
+#endif // TF_ITEM_SYSTEM_H \ No newline at end of file