Files
tbd-station-14/Content.Shared/Random/WeightedRandomPrototype.cs

17 lines
423 B
C#

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