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

            node.Add(ModeName, (int)Mode);
            node.Add(RatioName, Ratio);
            node.Add(LifetimeName, Lifetime.ExportYAML(container));
            node.Add(MinVertexDistanceName, MinVertexDistance);
            node.Add(TextureModeName, (int)TextureMode);
            node.Add(RibbonCountName, GetExportRibbonCount(container.Version));
            if (HasShadowBias(container.ExportVersion))
            {
                node.Add(ShadowBiasName, ShadowBias);
            }
            node.Add(WorldSpaceName, WorldSpace);
            node.Add(DieWithParticlesName, DieWithParticles);
            node.Add(SizeAffectsWidthName, SizeAffectsWidth);
            node.Add(SizeAffectsLifetimeName, SizeAffectsLifetime);
            node.Add(InheritParticleColorName, InheritParticleColor);
            node.Add(GenerateLightingDataName, GenerateLightingData);
            node.Add(SplitSubEmitterRibbonsName, SplitSubEmitterRibbons);
            if (HasAttachRibbonsToTransform(container.ExportVersion))
            {
                node.Add(AttachRibbonsToTransformName, AttachRibbonsToTransform);
            }
            node.Add(ColorOverLifetimeName, ColorOverLifetime.ExportYAML(container));
            node.Add(WidthOverTrailName, WidthOverTrail.ExportYAML(container));
            node.Add(ColorOverTrailName, ColorOverTrail.ExportYAML(container));
            return(node);
        }
Пример #2
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.Add("mode", (int)Mode);
            node.Add("ratio", Ratio);
            node.Add("lifetime", Lifetime.ExportYAML(container));
            node.Add("minVertexDistance", MinVertexDistance);
            node.Add("textureMode", TextureMode);
            node.Add("ribbonCount", GetExportRibbonCount(container.Version));
            node.Add("worldSpace", WorldSpace);
            node.Add("dieWithParticles", DieWithParticles);
            node.Add("sizeAffectsWidth", SizeAffectsWidth);
            node.Add("sizeAffectsLifetime", SizeAffectsLifetime);
            node.Add("inheritParticleColor", InheritParticleColor);
            node.Add("generateLightingData", GenerateLightingData);
            node.Add("splitSubEmitterRibbons", SplitSubEmitterRibbons);
            node.Add("colorOverLifetime", ColorOverLifetime.ExportYAML(container));
            node.Add("widthOverTrail", WidthOverTrail.ExportYAML(container));
            node.Add("colorOverTrail", ColorOverTrail.ExportYAML(container));
            return(node);
        }