14 lines
324 B
C#
14 lines
324 B
C#
using Content.Shared.Dataset;
|
|
using Robust.Shared.Random;
|
|
|
|
namespace Content.Shared.Random.Helpers
|
|
{
|
|
public static class SharedRandomExtensions
|
|
{
|
|
public static string Pick(this IRobustRandom random, DatasetPrototype prototype)
|
|
{
|
|
return random.Pick(prototype.Values);
|
|
}
|
|
}
|
|
}
|