Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

  1. //========= Copyright � 1996-2003, Valve LLC, All rights reserved. ============
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef GAME_ITEM_SCHEMA_H
  7. #define GAME_ITEM_SCHEMA_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #if defined(TF_CLIENT_DLL) || defined(TF_DLL) || defined(TF_GC_DLL)
  12. // TF
  13. class CTFItemSchema;
  14. class CTFItemDefinition;
  15. class CTFItemSystem;
  16. typedef CTFItemSchema GameItemSchema_t;
  17. typedef CTFItemDefinition GameItemDefinition_t;
  18. typedef CTFItemSystem GameItemSystem_t;
  19. #include "tf_item_schema.h"
  20. #elif defined( DOTA_CLIENT_DLL ) || defined( DOTA_DLL ) || defined ( DOTA_GC_DLL )
  21. // DOTA
  22. class CDOTAItemSchema;
  23. class CDOTAItemDefinition;
  24. class CDOTAItemSystem;
  25. typedef CDOTAItemSchema GameItemSchema_t;
  26. typedef CDOTAItemDefinition GameItemDefinition_t;
  27. typedef CDOTAItemSystem GameItemSystem_t;
  28. #include "econ/dota_item_schema.h"
  29. #elif defined( PORTAL2 ) || defined( PORTAL2_GC_DLL )
  30. // PORTAL2
  31. class CPortal2ItemSchema;
  32. class CPortal2ItemDefinition;
  33. class CPortal2ItemSystem;
  34. typedef CPortal2ItemSchema GameItemSchema_t;
  35. typedef CPortal2ItemDefinition GameItemDefinition_t;
  36. typedef CPortal2ItemSystem GameItemSystem_t;
  37. #include "portal2_item_schema.h"
  38. #elif defined( CSTRIKE15 ) || defined( CSTRIKE_GC_DLL )
  39. class CCStrike15ItemSchema;
  40. class CCStrike15ItemDefinition;
  41. class CCStrike15ItemSystem;
  42. typedef CCStrike15ItemSchema GameItemSchema_t;
  43. typedef CCStrike15ItemDefinition GameItemDefinition_t;
  44. typedef CCStrike15ItemSystem GameItemSystem_t;
  45. #include "cstrike15_item_schema.h"
  46. #else
  47. // Fallback Case
  48. class CEconItemSchema;
  49. class CEconItemDefinition;
  50. class CEconItemSystem;
  51. typedef CEconItemSchema GameItemSchema_t;
  52. typedef CEconItemDefinition GameItemDefinition_t;
  53. typedef CEconItemSystem GameItemSystem_t;
  54. #include "econ_item_schema.h"
  55. #endif
  56. extern GameItemSchema_t *GetItemSchema();
  57. #endif // GAME_ITEM_SYSTEM_H