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.

55 lines
1.5 KiB

  1. #ifndef RESOURCEEXTREFLIST_G_H
  2. #define RESOURCEEXTREFLIST_G_H
  3. #ifdef COMPILER_MSVC
  4. #pragma once
  5. #endif
  6. #include "resourcefile/schema.h"
  7. //-----------------------------------------------------------------------------
  8. // Forward declarations
  9. //-----------------------------------------------------------------------------
  10. struct ResourceExtRefList_t;
  11. struct ResourceExtRefTypeList_t;
  12. struct ResourceExtRefInfo_t;
  13. //-----------------------------------------------------------------------------
  14. // Enum definitions
  15. //-----------------------------------------------------------------------------
  16. schema enum ResourceExtRefistVersion_t
  17. {
  18. RESOURCE_EXT_REF_LIST_VERSION = 1,// (explicit)
  19. };
  20. //-----------------------------------------------------------------------------
  21. // Structure definitions
  22. //-----------------------------------------------------------------------------
  23. //! resourceBlockType = "RERL"
  24. schema struct ResourceExtRefList_t
  25. {
  26. uint32 m_nVersion;
  27. CResourceArray< ResourceExtRefTypeList_t > m_ResourceTypeList;
  28. CResourceArray< CResourcePointer< char > > m_FileNameList;
  29. };
  30. DEFINE_RESOURCE_BLOCK_TYPE( ResourceExtRefList_t, 'R', 'E', 'R', 'L' )
  31. schema struct ResourceExtRefTypeList_t
  32. {
  33. uint32 m_nResourceType; // see ResourceType_t
  34. CResourceArray< ResourceExtRefInfo_t > m_Resources;
  35. };
  36. schema struct ResourceExtRefInfo_t
  37. {
  38. uint32 m_nId; // see ResourceId_t
  39. uint32 m_nFileNameIndex; // index into ResourceExtRefList_t::m_pFileNameList
  40. CResourcePointer< char > m_pResourceName;
  41. };
  42. #endif // RESOURCEEXTREFLIST_G_H