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.

54 lines
1.4 KiB

  1. #ifndef RESOURCEIDLIST_G_H
  2. #define RESOURCEIDLIST_G_H
  3. #ifdef COMPILER_MSVC
  4. #pragma once
  5. #endif
  6. #include "resourcefile/schema.h"
  7. //-----------------------------------------------------------------------------
  8. // Forward declarations
  9. //-----------------------------------------------------------------------------
  10. struct ResourceIdList_t;
  11. struct ResourceIdTypeList_t;
  12. struct ResourceIdInfo_t;
  13. //-----------------------------------------------------------------------------
  14. // Enum definitions
  15. //-----------------------------------------------------------------------------
  16. schema enum ResourceIdListVersion_t
  17. {
  18. RESOURCE_ID_LIST_VERSION = 1,// (explicit)
  19. };
  20. //-----------------------------------------------------------------------------
  21. // Structure definitions
  22. //-----------------------------------------------------------------------------
  23. //! resourceBlockType = "RIDL"
  24. schema struct ResourceIdList_t
  25. {
  26. uint32 m_nVersion;
  27. CResourceArray< ResourceIdTypeList_t > m_ResourceTypeList;
  28. };
  29. DEFINE_RESOURCE_BLOCK_TYPE( ResourceIdList_t, 'R', 'I', 'D', 'L' )
  30. schema struct ResourceIdTypeList_t
  31. {
  32. uint32 m_nResourceType; // see ResourceType_t
  33. CResourceArray< ResourceIdInfo_t > m_Resources;
  34. };
  35. schema struct ResourceIdInfo_t
  36. {
  37. uint32 m_nId; // see ResourceId_t
  38. uint32 m_nEstimatedSize;
  39. uint32 m_nPermanentDataSize;
  40. CResourcePointer< void > m_PermanentData;
  41. };
  42. #endif // RESOURCEIDLIST_G_H