|
WeightedCollectionTAdd Method (T, Double) |
Adds an item into the pool with static weight.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void Add(
T item,
double weight
)
Public Sub Add (
item As T,
weight As Double
)
public:
virtual void Add(
T item,
double weight
) sealed
abstract Add :
item : 'T *
weight : float -> unit
override Add :
item : 'T *
weight : float -> unit
Parameters
- item
- Type: T
The item will add into the pool - weight
- Type: SystemDouble
Static weight
Implements
IDictionaryTKey, TValueAdd(TKey, TValue)See Also