Exemple #1
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.InsertSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("startLifetime", StartLifetime.ExportYAML(container));
            node.Add("startSpeed", StartSpeed.ExportYAML(container));
            node.Add("startColor", StartColor.ExportYAML(container));
            node.Add("startSize", StartSize.ExportYAML(container));
            node.Add("startSizeY", GetStartSizeY(container.Version).ExportYAML(container));
            node.Add("startSizeZ", GetStartSizeZ(container.Version).ExportYAML(container));
            node.Add("startRotationX", GetStartRotationX(container.Version).ExportYAML(container));
            node.Add("startRotationY", GetStartRotationY(container.Version).ExportYAML(container));
            node.Add("startRotation", StartRotation.ExportYAML(container));
            node.Add("randomizeRotationDirection", RandomizeRotationDirection);
            node.Add("maxNumParticles", MaxNumParticles);
            node.Add("size3D", Size3D);
            node.Add("rotation3D", Rotation3D);
            node.Add("gravityModifier", GravityModifier.ExportYAML(container));
            return(node);
        }
        public override YAMLNode ExportYAML(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(exporter);
            node.InsertSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("startLifetime", StartLifetime.ExportYAML(exporter));
            node.Add("startSpeed", StartSpeed.ExportYAML(exporter));
            node.Add("startColor", StartColor.ExportYAML(exporter));
            node.Add("startSize", StartSize.ExportYAML(exporter));
            node.Add("startSizeY", StartSizeY.ExportYAML(exporter));
            node.Add("startSizeZ", StartSizeZ.ExportYAML(exporter));
            node.Add("startRotationX", StartRotationX.ExportYAML(exporter));
            node.Add("startRotationY", StartRotationY.ExportYAML(exporter));
            node.Add("startRotation", StartRotation.ExportYAML(exporter));
            node.Add("randomizeRotationDirection", RandomizeRotationDirection);
            node.Add("maxNumParticles", MaxNumParticles);
            node.Add("size3D", Size3D);
            node.Add("rotation3D", Rotation3D);
            node.Add("gravityModifier", GravityModifier.ExportYAML(exporter));
            return(node);
        }
Exemple #3
0
        public override YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(container);

            node.InsertSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(StartLifetimeName, StartLifetime.ExportYAML(container));
            node.Add(StartSpeedName, StartSpeed.ExportYAML(container));
            node.Add(StartColorName, StartColor.ExportYAML(container));
            node.Add(StartSizeName, StartSize.ExportYAML(container));
            node.Add(StartSizeYName, GetStartSizeY(container.Version).ExportYAML(container));
            node.Add(StartSizeZName, GetStartSizeZ(container.Version).ExportYAML(container));
            node.Add(StartRotationXName, GetStartRotationX(container.Version).ExportYAML(container));
            node.Add(StartRotationYName, GetStartRotationY(container.Version).ExportYAML(container));
            node.Add(StartRotationName, StartRotation.ExportYAML(container));
            node.Add(RandomizeRotationDirectionName, RandomizeRotationDirection);
            node.Add(MaxNumParticlesName, MaxNumParticles);
            node.Add(Size3DName, Size3D);
            node.Add(Rotation3DName, Rotation3D);
            node.Add(GravityModifierName, GravityModifier.ExportYAML(container));
            return(node);
        }