2022-05-19 14:44:24 +10:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Random;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generic random weighting dataset to use.
|
|
|
|
|
/// </summary>
|
2025-03-19 14:30:31 -04:00
|
|
|
[Prototype]
|
2025-02-23 23:21:59 -05:00
|
|
|
public sealed partial class WeightedRandomPrototype : IWeightedRandomPrototype
|
2022-05-19 14:44:24 +10:00
|
|
|
{
|
2023-08-05 22:31:25 -04:00
|
|
|
[IdDataField]
|
2023-08-22 18:14:33 -07:00
|
|
|
public string ID { get; private set; } = default!;
|
2022-05-19 14:44:24 +10:00
|
|
|
|
|
|
|
|
[DataField("weights")]
|
2023-08-22 18:14:33 -07:00
|
|
|
public Dictionary<string, float> Weights { get; private set; } = new();
|
2022-05-19 14:44:24 +10:00
|
|
|
}
|