Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }