Show / Hide Table of Contents

Class ShadowedWeightedList<T>

Inheritance
System.Object
ShadowedWeightedList<T>
Namespace: ShadowBox.Types
Assembly: cs.temp.dll.dll
Syntax
public class ShadowedWeightedList<T> : List<ShadowedWeightedItem<T>>
Type Parameters
Name Description
T

Fields

Items

Declaration
public List<ShadowedWeightedItem<T>> Items
Field Value
Type Description
List<ShadowedWeightedItem<T>>

Properties

Collection

Declaration
public List<T> Collection { get; }
Property Value
Type Description
List<T>

Item[Int32]

Declaration
public T this[int i] { get; set; }
Parameters
Type Name Description
System.Int32 i
Property Value
Type Description
T

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
public T GetRandom()
Returns
Type Description
T

GetRandom(Int32)

Declaration
public List<T> GetRandom(int amount)
Parameters
Type Name Description
System.Int32 amount
Returns
Type Description
List<T>

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
Back to top Generated by DocFX