float GetMultiplier(int itemIndex, AttributeSet attributes) | The weight of a main item for the given attributes. |
IEnumerable<IDistributionItem<T>> GetPossibleResults() (iterator) | Every item that could come out right now, including active festivity items. |
T GetRandom(AttributeSet attributes = null) | Picks a weighted random item, or null by the null chance. Accepts your own random source. |
T GetRandom(Func<double> randomValue, AttributeSet attributes = null) | Picks a weighted random item, or null by the null chance. Accepts your own random source. |
int GetRandomIndex(AttributeSet attributes, out TFestivityGroup festivity) | Like GetRandom but returns the index, and the festivity group it came from if any. -1 for nothing. |
int GetRandomIndex(Func<double> randomValue, AttributeSet attributes, out TFestivityGroup festivity) | Like GetRandom but returns the index, and the festivity group it came from if any. -1 for nothing. |
void Migrate<TThisOther, TOther, TItemOther, TFestivityGroupOther>(TThisOther other, Func<TOther, T> convert) | Copies another distribution's settings and items, converting each item's asset. |
static double Random() | The default random source, Unity's Random.value. |