TemplateInfo.cpp 620 B

123456789101112131415161718192021222324
  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 "TemplateInfo.h"
  9. namespace O3DE::ProjectManager
  10. {
  11. TemplateInfo::TemplateInfo(const QString& path)
  12. : m_path(path)
  13. {
  14. }
  15. bool TemplateInfo::IsValid() const
  16. {
  17. // remote templates may have empty paths until they are downloaded
  18. return ((!m_isRemote && !m_path.isEmpty()) || m_isRemote) && !m_name.isEmpty();
  19. }
  20. } // namespace O3DE::ProjectManager