Ejemplo n.º 1
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            PropertyModificationLayout layout = context.Layout.PrefabInstance.PropertyModification;

            yield return(context.FetchDependency(Target, layout.TargetName));

            yield return(context.FetchDependency(ObjectReference, layout.ObjectReferenceName));
        }
Ejemplo n.º 2
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode            node   = new YAMLMappingNode();
            PropertyModificationLayout layout = container.Layout.PrefabInstance.PropertyModification;

            node.Add(layout.TargetName, Target.ExportYAML(container));
            node.Add(layout.PropertyPathName, PropertyPath);
            node.Add(layout.ValueName, Value);
            node.Add(layout.ObjectReferenceName, ObjectReference.ExportYAML(container));
            return(node);
        }