|
WeightedCollectionTAdd Method (T, IItemWeightT) |
Adds an item into the pool with dynamic weight definition.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void Add(
T item,
IItemWeight<T> weight
)
Public Sub Add (
item As T,
weight As IItemWeight(Of T)
)
public:
virtual void Add(
T item,
IItemWeight<T>^ weight
) sealed
abstract Add :
item : 'T *
weight : IItemWeight<'T> -> unit
override Add :
item : 'T *
weight : IItemWeight<'T> -> unit
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