GameResourcesExporter.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef CRYINCLUDE_EDITOR_GAMERESOURCESEXPORTER_H
  9. #define CRYINCLUDE_EDITOR_GAMERESOURCESEXPORTER_H
  10. #pragma once
  11. class CUsedResources;
  12. class CVarBlock;
  13. struct IVariable;
  14. /*! Implements exporting of all loaded resources to specified directory.
  15. *
  16. */
  17. class CGameResourcesExporter
  18. {
  19. public:
  20. void ChooseDirectoryAndSave();
  21. void ChooseDirectory();
  22. void Save(const QString& outputDirectory);
  23. void GatherAllLoadedResources();
  24. void SetUsedResources(CUsedResources& resources);
  25. private:
  26. typedef QStringList Files;
  27. static Files m_files;
  28. QString m_path;
  29. //////////////////////////////////////////////////////////////////////////
  30. // Functions that gather files from editor subsystems.
  31. //////////////////////////////////////////////////////////////////////////
  32. void GetFilesFromVarBlock(CVarBlock* pVB);
  33. void GetFilesFromVariable(IVariable* pVar);
  34. };
  35. #endif // CRYINCLUDE_EDITOR_GAMERESOURCESEXPORTER_H