public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(TransformParentName, TransformParent.ExportYAML(container));
            node.Add(ModificationsName, Modifications.ExportYAML(container));
            node.Add(RemovedComponentsName, RemovedComponents.ExportYAML(container));
            return(node);
        }
Exemplo n.º 2
0
        public YAMLNode ExportYAML()
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_TransformParent", TransformParent.ExportYAML());
            node.Add("m_Modifications", Modifications.ExportYAML());
            node.Add("m_RemovedComponents", RemovedComponents.ExportYAML());
            return(node);
        }
Exemplo n.º 3
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode          node   = new YAMLMappingNode();
            PrefabModificationLayout layout = container.Layout.PrefabInstance.PrefabModification;

            node.Add(layout.TransformParentName, TransformParent.ExportYAML(container));
            node.Add(layout.ModificationsName, Modifications.ExportYAML(container));
            node.Add(layout.RemovedComponentsName, RemovedComponents.ExportYAML(container));
            return(node);
        }
Exemplo n.º 4
0
 internal void NotifyRemovedComponents(TEntityId entityId, IList <TComponentKind> componentKinds)
 {
     RemovedComponents?.Invoke(this, new EntityComponentsChangeEventArgs <TEntityId, TComponentKind>(CollectionChangeActionEx.Remove, entityId, componentKinds));
 }
Exemplo n.º 5
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_TransformParent", TransformParent.ExportYAML(container));
            node.Add("m_Modifications", m_modifications == null ? YAMLSequenceNode.Empty : Modifications.ExportYAML(container));
            node.Add("m_RemovedComponents", m_removedComponents == null ? YAMLSequenceNode.Empty : RemovedComponents.ExportYAML(container));
            return(node);
        }
 public void Write(AssetWriter writer)
 {
     TransformParent.Write(writer);
     Modifications.Write(writer);
     RemovedComponents.Write(writer);
 }