diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/econ/game_item_schema.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/econ/game_item_schema.h')
| -rw-r--r-- | game/shared/econ/game_item_schema.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/game/shared/econ/game_item_schema.h b/game/shared/econ/game_item_schema.h new file mode 100644 index 0000000..1f1c61c --- /dev/null +++ b/game/shared/econ/game_item_schema.h @@ -0,0 +1,49 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= +#ifndef GAME_ITEM_SCHEMA_H +#define GAME_ITEM_SCHEMA_H +#ifdef _WIN32 +#pragma once +#endif + +#if defined(TF_CLIENT_DLL) || defined(TF_DLL) || defined(TF_GC_DLL) +// TF + class CTFItemSchema; + class CTFItemDefinition; + class CTFItemSystem; + + typedef CTFItemSchema GameItemSchema_t; + typedef CTFItemDefinition GameItemDefinition_t; + typedef CTFItemSystem GameItemSystem_t; + + #include "tf_item_schema.h" +#elif defined( DOTA_CLIENT_DLL ) || defined( DOTA_DLL ) || defined ( DOTA_GC_DLL ) +// DOTA + class CDOTAItemSchema; + class CDOTAItemDefinition; + class CDOTAItemSystem; + + typedef CDOTAItemSchema GameItemSchema_t; + typedef CDOTAItemDefinition GameItemDefinition_t; + typedef CDOTAItemSystem GameItemSystem_t; + + #include "econ/dota_item_schema.h" +#else + // Fallback Case + class CEconItemSchema; + class CEconItemDefinition; + class CEconItemSystem; + + typedef CEconItemSchema GameItemSchema_t; + typedef CEconItemDefinition GameItemDefinition_t; + typedef CEconItemSystem GameItemSystem_t; + + #include "econ_item_schema.h" +#endif + +extern GameItemSchema_t *GetItemSchema(); + +#endif // GAME_ITEM_SYSTEM_H |