using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary; namespace Content.Shared.Random; /// /// Linter-friendly version of weightedRandom for Entity prototypes. /// [Prototype("weightedRandomEntity")] public sealed class WeightedRandomEntityPrototype : IWeightedRandomPrototype { [IdDataField] public string ID { get; } = default!; [DataField("weights", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] public Dictionary Weights { get; } = new(); }