Пример #1
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.Add(StrengthName, Strength.ExportYAML(container));
            node.Add(StrengthYName, StrengthY.ExportYAML(container));
            node.Add(StrengthZName, StrengthZ.ExportYAML(container));
            node.Add(SeparateAxesName, SeparateAxes);
            node.Add(FrequencyName, Frequency);
            node.Add(DampingName, Damping);
            node.Add(OctavesName, Octaves);
            node.Add(OctaveMultiplierName, OctaveMultiplier);
            node.Add(OctaveScaleName, OctaveScale);
            node.Add(QualityName, (int)Quality);
            node.Add(ScrollSpeedName, ScrollSpeed.ExportYAML(container));
            node.Add(RemapName, Remap.ExportYAML(container));
            node.Add(RemapYName, RemapY.ExportYAML(container));
            node.Add(RemapZName, RemapZ.ExportYAML(container));
            node.Add(RemapEnabledName, RemapEnabled);
            node.Add(PositionAmountName, GetExportPositionAmount(container.Version).ExportYAML(container));
            node.Add(RotationAmountName, GetExportRotationAmount(container.Version).ExportYAML(container));
            node.Add(SizeAmountName, GetExportSizeAmount(container.Version).ExportYAML(container));
            return(node);
        }
Пример #2
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.Add("strength", Strength.ExportYAML(container));
            node.Add("strengthY", StrengthY.ExportYAML(container));
            node.Add("strengthZ", StrengthZ.ExportYAML(container));
            node.Add("separateAxes", SeparateAxes);
            node.Add("frequency", Frequency);
            node.Add("damping", Damping);
            node.Add("octaves", Octaves);
            node.Add("octaveMultiplier", OctaveMultiplier);
            node.Add("octaveScale", OctaveScale);
            node.Add("quality", (int)Quality);
            node.Add("scrollSpeed", ScrollSpeed.ExportYAML(container));
            node.Add("remap", Remap.ExportYAML(container));
            node.Add("remapY", RemapY.ExportYAML(container));
            node.Add("remapZ", RemapZ.ExportYAML(container));
            node.Add("remapEnabled", RemapEnabled);
            node.Add("positionAmount", GetExportPositionAmount(container.Version).ExportYAML(container));
            node.Add("rotationAmount", GetExportRotationAmount(container.Version).ExportYAML(container));
            node.Add("sizeAmount", GetExportSizeAmount(container.Version).ExportYAML(container));
            return(node);
        }
Пример #3
0
        public override YAMLNode ExportYAML(IAssetsExporter exporter)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(exporter);

            node.Add("strength", Strength.ExportYAML(exporter));
            node.Add("strengthY", StrengthY.ExportYAML(exporter));
            node.Add("strengthZ", StrengthZ.ExportYAML(exporter));
            node.Add("separateAxes", SeparateAxes);
            node.Add("frequency", Frequency);
            node.Add("damping", Damping);
            node.Add("octaves", Octaves);
            node.Add("octaveMultiplier", OctaveMultiplier);
            node.Add("octaveScale", OctaveScale);
            node.Add("quality", Quality);
            node.Add("scrollSpeed", ScrollSpeed.ExportYAML(exporter));
            node.Add("remap", Remap.ExportYAML(exporter));
            node.Add("remapY", RemapY.ExportYAML(exporter));
            node.Add("remapZ", RemapZ.ExportYAML(exporter));
            node.Add("remapEnabled", RemapEnabled);
            node.Add("positionAmount", PositionAmount.ExportYAML(exporter));
            node.Add("rotationAmount", RotationAmount.ExportYAML(exporter));
            node.Add("sizeAmount", SizeAmount.ExportYAML(exporter));
            return(node);
        }