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); }
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); }
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); }
internal void NotifyRemovedComponents(TEntityId entityId, IList <TComponentKind> componentKinds) { RemovedComponents?.Invoke(this, new EntityComponentsChangeEventArgs <TEntityId, TComponentKind>(CollectionChangeActionEx.Remove, entityId, componentKinds)); }
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); }