Files
tbd-station-14/Content.Shared/Random/WeightedRandomPrototype.cs
metalgearsloth 8d6a3ecea7 Secret! (#8276)
Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
2022-05-19 14:44:24 +10:00

16 lines
379 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
{
[IdDataFieldAttribute] public string ID { get; } = default!;
[DataField("weights")]
public Dictionary<string, float> Weights = new();
}