Update Prism Python bindings interface

Add GetProjects, GetProjectTemplates, GetGems, GetProject and GetGem.
CreateProject and UpdateProject and the engine functions are not implemented yet
This commit is contained in:
Alex Peterson
2021-05-14 14:53:32 -07:00
committed by GitHub
parent 9ecbbe471b
commit 9b9ae22d23
13 changed files with 489 additions and 19 deletions
@@ -14,6 +14,7 @@
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <PythonBindingsInterface.h>
namespace O3DE::ProjectManager
{
@@ -78,6 +79,14 @@ namespace O3DE::ProjectManager
false));
}
// End: Temporary gem test data
auto result = PythonBindingsInterface::Get()->GetGems();
if (result.IsSuccess())
{
for (auto gemInfo : result.GetValue())
{
m_gemModel->AddGem(gemInfo);
}
}
}
ProjectManagerScreen GemCatalogScreen::GetScreenEnum()
@@ -22,4 +22,10 @@ namespace O3DE::ProjectManager
, m_isAdded(isAdded)
{
}
bool GemInfo::IsValid() const
{
return !m_path.isEmpty() && !m_uuid.IsNull();
}
} // namespace O3DE::ProjectManager
@@ -35,8 +35,11 @@ namespace O3DE::ProjectManager
};
Q_DECLARE_FLAGS(Platforms, Platform)
GemInfo() = default;
GemInfo(const QString& name, const QString& creator, const QString& summary, Platforms platforms, bool isAdded);
bool IsValid() const;
QString m_path;
QString m_name;
QString m_displayName;