Files
tbd-station-14/Content.Shared/Random/WeightedRandomPrototype.cs
2023-01-19 13:56:45 +11:00

16 lines
370 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Random;
/// <summary>
/// Generic random weighting dataset to use.
/// </summary>
[Prototype("weightedRandom")]
public sealed class WeightedRandomPrototype : IPrototype
{
[IdDataField] public string ID { get; } = default!;
[DataField("weights")]
public Dictionary<string, float> Weights = new();
}