Click or drag to resize
WeightedCollectionTAdd Method (T, IItemWeightT)
Adds an item into the pool with dynamic weight definition.

Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void Add(
	T item,
	IItemWeight<T> weight
)

Parameters

item
Type: T
The item will add into the pool
weight
Type: JLChnToZ.LuckyPlayer.WeightedRandomizerIItemWeightT
Weight object which will controls the weight of this item

Implements

IDictionaryTKey, TValueAdd(TKey, TValue)
See Also