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