EngineInfo.cpp 779 B

12345678910111213141516171819202122232425262728293031
  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. #include "EngineInfo.h"
  9. namespace O3DE::ProjectManager
  10. {
  11. EngineInfo::EngineInfo(const QString& path, const QString& name, const QString& version, const QString& thirdPartyPath)
  12. : m_path(path)
  13. , m_name(name)
  14. , m_version(version)
  15. , m_thirdPartyPath(thirdPartyPath)
  16. {
  17. }
  18. bool EngineInfo::operator<(const EngineInfo& engineInfo) const
  19. {
  20. return (m_name < engineInfo.m_name);
  21. }
  22. bool EngineInfo::IsValid() const
  23. {
  24. return !m_path.isEmpty();
  25. }
  26. } // namespace O3DE::ProjectManager