Class RandomSystem
Inheritance
System.Object
RandomSystem
Assembly: Content.Shared.dll
Syntax
public sealed class RandomSystem : EntitySystem
Methods
|
Improve this Doc
View Source
GetBudgetEntry(ref Single, ref Single, IList<IBudgetEntry>, Random)
Declaration
public IBudgetEntry GetBudgetEntry(ref float budget, ref float probSum, IList<IBudgetEntry> entries, Random random)
Parameters
Type |
Name |
Description |
System.Single |
budget |
|
System.Single |
probSum |
|
IList<IBudgetEntry> |
entries |
|
System.Random |
random |
|
Returns
|
Improve this Doc
View Source
GetProbEntry(IEnumerable<IProbEntry>, Single, Random)
Gets a random entry based on each entry having a different probability.
Declaration
public IProbEntry GetProbEntry(IEnumerable<IProbEntry> entries, float probSum, Random random)
Parameters
Type |
Name |
Description |
IEnumerable<IProbEntry> |
entries |
|
System.Single |
probSum |
|
System.Random |
random |
|
Returns