CatStation/Content.Shared/Random/WeightedRandomSpeciesPrototype.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

17 lines
529 B
C#

using Content.Shared.Humanoid.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared.Random;
/// <summary>
/// Linter-friendly version of weightedRandom for Species prototypes.
/// </summary>
[Prototype]
public sealed partial class WeightedRandomSpeciesPrototype : IWeightedRandomPrototype<SpeciesPrototype>
{
[IdDataField]
public string ID { get; private set; } = default!;
[DataField(required: true)]
public Dictionary<ProtoId<SpeciesPrototype>, float> Weights { get; private set; } = new();
}