Files
wwdpublic/Content.Shared/Random/WeightedRandomPrototype.cs
Tayrtahn 7f3b436dc1 Fix prototypes so they pass analyzer checks (#35435)
(cherry picked from commit 6f925dd61083a3fd377e5d12549ac908985e855f)
2025-09-27 13:54:06 +03:00

17 lines
431 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Random;
/// <summary>
/// Generic random weighting dataset to use.
/// </summary>
[Prototype("weightedRandom")]
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();
}