SC Editor serialization update in JSON

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-11-22 16:04:49 -08:00
committed by Chris Burel
parent 5db535d1dd
commit 23267fd862
15 changed files with 187 additions and 58 deletions
@@ -237,16 +237,16 @@ namespace ScriptCanvasEditor
return m_id;
}
bool SourceHandle::IsValid() const
{
return m_data != nullptr;
}
bool SourceHandle::IsValidDescription() const
bool SourceHandle::IsDescriptionValid() const
{
return !m_id.IsNull() && !m_path.empty();
}
bool SourceHandle::IsGraphValid() const
{
return m_data != nullptr;
}
GraphPtr SourceHandle::Mod() const
{
return m_data ? m_data->ModEditorGraph() : nullptr;
@@ -290,7 +290,7 @@ namespace ScriptCanvasEditor
{
return AZStd::string::format
( "%s, %s, %s"
, IsValid() ? "O" : "X"
, IsGraphValid() ? "O" : "X"
, m_path.empty() ? m_path.c_str() : "<no name>"
, m_id.IsNull() ? "<null id>" : m_id.ToString<AZStd::string>().c_str());
}
@@ -342,9 +342,9 @@ namespace ScriptCanvasEditor
const AZ::Uuid& Id() const;
bool IsValid() const;
bool IsDescriptionValid() const;
bool IsValidDescription() const;
bool IsGraphValid() const;
GraphPtr Mod() const;