2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Shared.Dataset;
|
2021-02-16 20:14:12 +01:00
|
|
|
|
using Robust.Shared.Random;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Shared.Random.Helpers
|
2021-02-16 20:14:12 +01:00
|
|
|
|
{
|
|
|
|
|
|
public static class SharedRandomExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static string Pick(this IRobustRandom random, DatasetPrototype prototype)
|
|
|
|
|
|
{
|
|
|
|
|
|
return random.Pick(prototype.Values);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|