Class SharedRandomExtensions
Inheritance
System.Object
SharedRandomExtensions
Assembly: Content.Shared.dll
Syntax
public static class SharedRandomExtensions : object
Methods
|
Improve this Doc
View Source
Pick(IWeightedRandomPrototype, IRobustRandom)
Declaration
public static string Pick(this IWeightedRandomPrototype prototype, IRobustRandom random = null)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Pick(IWeightedRandomPrototype, Random)
Declaration
public static string Pick(this IWeightedRandomPrototype prototype, Random random)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Pick(WeightedRandomFillSolutionPrototype, IRobustRandom)
Declaration
public static (string reagent, FixedPoint2 quantity) Pick(this WeightedRandomFillSolutionPrototype prototype, IRobustRandom random = null)
Parameters
Returns
Type |
Description |
System.ValueTuple<System.String, FixedPoint2> |
|
|
Improve this Doc
View Source
Pick(IRobustRandom, DatasetPrototype)
Declaration
public static string Pick(this IRobustRandom random, DatasetPrototype prototype)
Parameters
Type |
Name |
Description |
Robust.Shared.Random.IRobustRandom |
random |
|
DatasetPrototype |
prototype |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Pick(IRobustRandom, Dictionary<String, Single>)
Declaration
public static string Pick(this IRobustRandom random, Dictionary<string, float> weights)
Parameters
Type |
Name |
Description |
Robust.Shared.Random.IRobustRandom |
random |
|
Dictionary<System.String, System.Single> |
weights |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
PickRandomFill(WeightedRandomFillSolutionPrototype, IRobustRandom)
Declaration
public static RandomFillSolution PickRandomFill(this WeightedRandomFillSolutionPrototype prototype, IRobustRandom random = null)
Parameters
Returns