Vixen
02b45cc4
csharp
public readonly record struct FoliageGrowthResult

What a simulation did, and what refused each seed that did not take.

Read the guide page for this →

Remarks

⚠ A refusal per reason, for Consider's reason. "The simulation grew nothing" is the report; "eleven thousand seeds, nine thousand of them shaded out" is a shade tolerance somebody changes. A simulation an author cannot read is one they run twice and abandon.

Fields and properties (12)

  • public int Steps

    How many steps ran.

  • public int Sown

    How many seeds the first step scattered.

  • public int Sprouted

    How many seeds mature plants dropped over every step after it.

  • public int Placed

    How many plants were standing at the end.

  • public int NoSurface

    Seeds with no ground, ground too steep, or the wrong layer under them.

  • public int Blocked

    Seeds inside a blocking volume.

  • public int Crowded

    Seeds too close to a plant they could not displace.

  • public int Shaded

    Seeds under more canopy than they tolerate.

  • public int Displaced

    Plants a higher-priority seed removed.

  • public int Capped

    Seeds refused because the region was full.

  • public int Considered

    How many seeds the simulation considered in total.

  • public int Refused

    How many were refused.

Methods (1)

  • public FoliageGrowthResult(int Steps, int Sown, int Sprouted, int Placed, int NoSurface, int Blocked, int Crowded, int Shaded, int Displaced, int Capped)

    What a simulation did, and what refused each seed that did not take.

Used by (4)

  • FoliageBlockerTestsVixen.Rendering.Terrain.Tests
  • FoliageGrowthVixen.Foliage
  • FoliageGrowthTestsVixen.Foliage.Tests
  • TerrainModuleVixen.Editor.Terrain