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

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(PrototypeName, Prototype.ExportYAML(container));
            node.Add(PrototypeTextureName, PrototypeTexture.ExportYAML(container));
            node.Add(MinWidthName, MinWidth);
            node.Add(MaxWidthName, MaxWidth);
            node.Add(MinHeightName, MinHeight);
            node.Add(MaxHeightName, MaxHeight);
            node.Add(NoiseSpreadName, NoiseSpread);
            node.Add(BendFactorName, BendFactor);
            node.Add(HealthyColorName, HealthyColor.ExportYAML(container));
            node.Add(DryColorName, DryColor.ExportYAML(container));
            node.Add(LightmapFactorName, LightmapFactor);
            node.Add(RenderModeName, (int)RenderMode);
            node.Add(UsePrototypeMeshName, UsePrototypeMesh);
            return(node);
        }
예제 #2
0
        public YAMLNode ExportYAML(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("prototype", Prototype.ExportYAML(exporter));
            node.Add("prototypeTexture", PrototypeTexture.ExportYAML(exporter));
            node.Add("minWidth", MinWidth);
            node.Add("maxWidth", MaxWidth);
            node.Add("minHeight", MinHeight);
            node.Add("maxHeight", MaxHeight);
            node.Add("noiseSpread", NoiseSpread);
            node.Add("bendFactor", BendFactor);
            node.Add("healthyColor", HealthyColor.ExportYAML(exporter));
            node.Add("dryColor", DryColor.ExportYAML(exporter));
            node.Add("lightmapFactor", LightmapFactor);
            node.Add("renderMode", RenderMode);
            node.Add("usePrototypeMesh", UsePrototypeMesh);
            return(node);
        }
예제 #3
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("prototype", Prototype.ExportYAML(container));
            node.Add("prototypeTexture", PrototypeTexture.ExportYAML(container));
            node.Add("minWidth", MinWidth);
            node.Add("maxWidth", MaxWidth);
            node.Add("minHeight", MinHeight);
            node.Add("maxHeight", MaxHeight);
            node.Add("noiseSpread", NoiseSpread);
            node.Add("bendFactor", BendFactor);
            node.Add("healthyColor", HealthyColor.ExportYAML(container));
            node.Add("dryColor", DryColor.ExportYAML(container));
            node.Add("lightmapFactor", LightmapFactor);
            node.Add("renderMode", RenderMode);
            node.Add("usePrototypeMesh", UsePrototypeMesh);
            return(node);
        }