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

            node.Add(RatioName, Ratio);
            node.Add(LightName, Light.ExportYAML(container));
            node.Add(RandomDistributionName, RandomDistribution);
            node.Add(ColorName, Color);
            node.Add(RangeName, Range);
            node.Add(IntensityName, Intensity);
            node.Add(RangeCurveName, RangeCurve.ExportYAML(container));
            node.Add(IntensityCurveName, IntensityCurve.ExportYAML(container));
            node.Add(MaxLightsName, MaxLights);
            return(node);
        }
예제 #2
0
        public override YAMLNode ExportYAML(IAssetsExporter exporter)
        {
            YAMLMappingNode node = (YAMLMappingNode)base.ExportYAML(exporter);

            node.Add("ratio", Ratio);
            node.Add("light", Light.ExportYAML(exporter));
            node.Add("randomDistribution", RandomDistribution);
            node.Add("color", Color);
            node.Add("range", Range);
            node.Add("intensity", Intensity);
            node.Add("rangeCurve", RangeCurve.ExportYAML(exporter));
            node.Add("intensityCurve", IntensityCurve.ExportYAML(exporter));
            node.Add("maxLights", MaxLights);
            return(node);
        }