Class ShadowedWeightedList<T>
Inheritance
System.Object
ShadowedWeightedList<T>
Assembly: cs.temp.dll.dll
Syntax
public class ShadowedWeightedList<T> : List<ShadowedWeightedItem<T>>
Type Parameters
Fields
Items
Declaration
public List<ShadowedWeightedItem<T>> Items
Field Value
Properties
Collection
Declaration
public List<T> Collection { get; }
Property Value
Item[Int32]
Declaration
public T this[int i] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Property Value
Methods
Add(T, Single)
Declaration
public bool Add(T item, float weight)
Parameters
Type |
Name |
Description |
T |
item |
|
System.Single |
weight |
|
Returns
Type |
Description |
System.Boolean |
|
GetRandom()
Declaration
Returns
GetRandom(Int32)
Declaration
public List<T> GetRandom(int amount)
Parameters
Type |
Name |
Description |
System.Int32 |
amount |
|
Returns
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveAt(Int32)
Declaration
public bool RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|