Files
OldThink/Content.Shared/Random/WeightedRandomPrototype.cs

16 lines
379 B
C#
Raw Normal View History

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();
}