Refactored ProjectManagerSettings, added tests, changed project built successful to be tracked by project path, added project ids, changed project settings path to use project id and name
Signed-off-by: nggieber <52797929+AMZN-nggieber@users.noreply.github.com>
This commit is contained in:
@@ -687,8 +687,24 @@ namespace O3DE::ProjectManager
|
||||
|
||||
auto createProjectResult = m_engineTemplate.attr("create_project")(
|
||||
projectPath,
|
||||
QString_To_Py_String(projectInfo.m_projectName),
|
||||
QString_To_Py_Path(projectTemplatePath)
|
||||
QString_To_Py_String(projectInfo.m_projectName), // project_path
|
||||
QString_To_Py_Path(projectTemplatePath), // template_path
|
||||
pybind11::none(), // template_name
|
||||
pybind11::none(), // project_restricted_path
|
||||
pybind11::none(), // project_restricted_name
|
||||
pybind11::none(), // template_restricted_path
|
||||
pybind11::none(), // template_restricted_name
|
||||
pybind11::none(), // project_restricted_platform_relative_path
|
||||
pybind11::none(), // template_restricted_platform_relative_path
|
||||
pybind11::none(), // keep_restricted_in_project
|
||||
pybind11::none(), // keep_license_text
|
||||
pybind11::none(), // replace
|
||||
pybind11::none(), // force
|
||||
pybind11::none(), // no_register
|
||||
pybind11::none(), // system_component_class_id
|
||||
pybind11::none(), // editor_system_component_class_id
|
||||
pybind11::none(), // module_id
|
||||
QString_To_Py_String(projectInfo.m_id) // project_id
|
||||
);
|
||||
if (createProjectResult.cast<int>() == 0)
|
||||
{
|
||||
@@ -822,6 +838,7 @@ namespace O3DE::ProjectManager
|
||||
{
|
||||
projectInfo.m_projectName = Py_To_String(projectData["project_name"]);
|
||||
projectInfo.m_displayName = Py_To_String_Optional(projectData, "display_name", projectInfo.m_projectName);
|
||||
projectInfo.m_id = Py_To_String_Optional(projectData, "project_id", projectInfo.m_id);
|
||||
projectInfo.m_origin = Py_To_String_Optional(projectData, "origin", projectInfo.m_origin);
|
||||
projectInfo.m_summary = Py_To_String_Optional(projectData, "summary", projectInfo.m_summary);
|
||||
projectInfo.m_iconPath = Py_To_String_Optional(projectData, "icon", ProjectPreviewImagePath);
|
||||
@@ -926,6 +943,7 @@ namespace O3DE::ProjectManager
|
||||
QString_To_Py_Path(projectInfo.m_path),
|
||||
pybind11::none(), // proj_name not used
|
||||
QString_To_Py_String(projectInfo.m_projectName),
|
||||
QString_To_Py_String(projectInfo.m_id),
|
||||
QString_To_Py_String(projectInfo.m_origin),
|
||||
QString_To_Py_String(projectInfo.m_displayName),
|
||||
QString_To_Py_String(projectInfo.m_summary),
|
||||
|
||||
Reference in New Issue
Block a user