Skip to main content

File For Pgsharp: Shinydat

[JsonPropertyName("rules")] public List<Rule> Rules { get; set; }

[JsonPropertyName("type")] public string Type { get; set; } shinydat file for pgsharp

[JsonPropertyName("colors")] public List<string> Colors { get; set; } } [JsonPropertyName("rules")] public List&lt

{ "version": "1.0", "library": "PGSharp", "assets": [ "texture_1.png", "model_1.obj" ], "rules": [ { "id": "biome_forest", "type": "biome", "conditions": [ {"terrain_height": "high"} ], "features": [ {"tree": "oak", "density": 0.5}, {"grass": "green", "density": 0.8} ] } ], "palettes": [ { "id": "autumn", "colors": [ "#FFA07A", "#FFC107", "#8BC34A" ] } ], "inputs": { "scale": { "min": 1, "max": 100, "default": 50 }, "trees": { "min": 0, "max": 100, "default": 20 } } } Here's a basic example of how you might load and utilize a ShinyData file in C#: Rules { get

public class Condition { [JsonPropertyName("terrain_height")] public string TerrainHeight { get; set; } }

[JsonPropertyName("density")] public float Density { get; set; } }