|
WeightedCollectionTSetWeight Method (T, Double) |
Sets a static weight of an item.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool SetWeight(
T item,
double weight
)
Public Function SetWeight (
item As T,
weight As Double
) As Boolean
public:
bool SetWeight(
T item,
double weight
)
member SetWeight :
item : 'T *
weight : float -> bool
Parameters
- item
- Type: T
The item - weight
- Type: SystemDouble
The weight
Return Value
Type:
Booleantrue 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