SC Editor serialization update in JSON
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user