Skip to main content

Distribution<TThis, T, TItem, TFestivityGroup>.BaseFestivityGroup

A class in Root.Township, Alta.Caves.

A set of distribution items tied to a Festivity; they are only included in random picks while that festivity is activated.

Constructors​

MemberWhat it is
BaseFestivityGroup()Creates a Distribution with default values.

Fields​

2 private and internal fields
MemberWhat it is
private Festivity festivityBacking field for Festivity.
private List<TItem> itemsBacking field for Items.

Properties​

MemberWhat it is
Festivity Festivity { get; }The festivity that turns this group on.
List<TItem> Items { get; }The weighted items in this group.

Methods​

MemberWhat it is
void Migrate<TThisOther, TOther, TItemOther, TFestivityGroupOther>(TFestivityGroupOther other, Func<TOther, T> convert)Copies the festivity and converts each item from another distribution type.