terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
|
Public Member Functions | |
WeightedRandom () | |
WeightedRandom (int seed) | |
WeightedRandom (UnifiedRandom random) | |
WeightedRandom (params Tuple< T, double >[] theElements) | |
WeightedRandom (int seed, params Tuple< T, double >[] theElements) | |
WeightedRandom (UnifiedRandom random, params Tuple< T, double >[] theElements) | |
void | Add (T element, double weight=1.0) |
T | Get () |
void | CalculateTotalWeight () |
void | Clear () |
Static Public Member Functions | |
static implicit | operator T (WeightedRandom< T > weightedRandom) |
Public Attributes | |
readonly List< Tuple< T, double > > | elements |
readonly UnifiedRandom | random |
bool | needsRefresh |
Private Attributes | |
double | _totalWeight |
Definition at line 7 of file WeightedRandom.cs.