Click or drag to resize
WeightedCollectionTSetWeight Method (T, Double)
Sets a static weight of an item.

Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public bool SetWeight(
	T item,
	double weight
)

Parameters

item
Type: T
The item
weight
Type: SystemDouble
The weight

Return Value

Type: Boolean
true if object found and sets successfully, otherwise false.
Remarks
If ItemWeightT is binded, it will change the value of it, otherwise it will bind an immutable static weight controller with the weight defined.
See Also