2022-05-19 14:44:24 +10:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Random;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generic random weighting dataset to use.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Prototype("weightedRandom")]
|
|
|
|
|
public sealed class WeightedRandomPrototype : IPrototype
|
|
|
|
|
{
|
2023-01-19 03:56:45 +01:00
|
|
|
[IdDataField] public string ID { get; } = default!;
|
2022-05-19 14:44:24 +10:00
|
|
|
|
|
|
|
|
[DataField("weights")]
|
|
|
|
|
public Dictionary<string, float> Weights = new();
|
|
|
|
|
}
|