|
terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
|
Collaboration diagram for Terraria.Utilities.WeightedRandom< T >: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 10 of file WeightedRandom.cs.