跳到主要内容

Class Roulette

Properties

betCount

public int betCount { get; }

totalPoints

public float totalPoints { get; protected set; }

Constructors

Roulette()

public Roulette()

Roulette(int capacity)

public Roulette(int capacity)

Roulette(IEnumerable<KeyValuePair<T, float>> betPairs)

public Roulette(IEnumerable<KeyValuePair<T, float>> betPairs)

Methods

T Get()

public T Get()

void Clear()

public void Clear()

void AddBet(T bet, float points)

public void AddBet(T bet, float points)

void AddBet(KeyValuePair<T, float> betPair)

public void AddBet(KeyValuePair<T, float> betPair)

bool RemoveBet(T bet)

public bool RemoveBet(T bet)

void RemoveBetAt(int index)

public void RemoveBetAt(int index)