コード例 #1
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.Add(MultiplierName, Multiplier);
            if (IsReadInfluenceFilter(container.Version))
            {
                node.Add(InfluenceFilterName, InfluenceFilter);
                node.Add(InfluenceMaskName, InfluenceMask.ExportYAML(container));
                node.Add(InfluenceListName, InfluenceList.ExportYAML(container));
            }
            return(node);
        }
コード例 #2
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            if (HasMultiplierCurve(container.ExportVersion))
            {
                node.Add(MultiplierCurveName, MultiplierCurve.ExportYAML(container));
            }
            else
            {
                node.Add(MultiplierName, Multiplier);
            }
            if (HasInfluenceFilter(container.Version))
            {
                node.Add(InfluenceFilterName, InfluenceFilter);
                node.Add(InfluenceMaskName, InfluenceMask.ExportYAML(container));
                node.Add(InfluenceListName, InfluenceList.ExportYAML(container));
            }
            return(node);
        }