protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add(EditorHideFlagsName, false); node.Add(ScriptName, Script.ExportYAML(container)); node.Add(NameName, Name); node.Add(EditorClassIdentifierName, string.Empty); if (Structure != null) { YAMLMappingNode structureNode = (YAMLMappingNode)Structure.ExportYAML(container); node.Concatenate(structureNode); } return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add(EditorHideFlagsName, (uint)GetEditorHideFlags(container.Version, container.Flags)); node.Add(ScriptName, Script.ExportYAML(container)); node.Add(NameName, Name); node.Add(EditorClassIdentifierName, GetEditorClassIdentifier(container.Version, container.Flags)); if (Structure != null) { YAMLMappingNode structureNode = (YAMLMappingNode)Structure.ExportYAML(container); node.Concatenate(structureNode); } return(node); }