GameResourcesExporter.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 GetFilesFromObjects();
  33. void GetFilesFromVarBlock(CVarBlock* pVB);
  34. void GetFilesFromVariable(IVariable* pVar);
  35. };
  36. #endif // CRYINCLUDE_EDITOR_GAMERESOURCESEXPORTER_H