EngineInfo.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <QString>
  11. #endif
  12. namespace O3DE::ProjectManager
  13. {
  14. class EngineInfo
  15. {
  16. public:
  17. EngineInfo() = default;
  18. EngineInfo(const QString& path, const QString& name, const QString& version, const QString& thirdPartyPath);
  19. bool operator<(const EngineInfo& engineInfo) const;
  20. // from engine.json
  21. QString m_version;
  22. QString m_displayVersion;
  23. QString m_name;
  24. QString m_thirdPartyPath;
  25. QString m_path;
  26. // from o3de_manifest.json
  27. QString m_defaultProjectsFolder;
  28. QString m_defaultGemsFolder;
  29. QString m_defaultTemplatesFolder;
  30. QString m_defaultRestrictedFolder;
  31. bool m_registered = false;
  32. bool m_thisEngine = false;
  33. bool IsValid() const;
  34. };
  35. } // namespace O3DE::ProjectManager