IDistribution<T>
An interface in Root.Township, Alta.Caves.
Something that can pick a random result of type T, optionally weighted by biome attributes.
- Listed in World generation
- Derived types
Distribution<TThis, T, TItem, TFestivityGroup>
Methods
| Member | What it is |
|---|---|
IEnumerable<IDistributionItem<T>> GetPossibleResults() | Every entry that could be picked, including those in active festivity groups. |
T GetRandom(Func<double> randomValue, AttributeSet attributes = null) | Picks a weighted random result using the given random source and attributes; can return null. |