Skip to main content

IDistribution<T>

An interface in Root.Township, Alta.Caves.

Something that can pick a random result of type T, optionally weighted by biome attributes.

Methods​

MemberWhat 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.