WeightedRandomPrototype.cs 413 B

12345678910111213141516
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Random;
  3. /// <summary>
  4. /// Generic random weighting dataset to use.
  5. /// </summary>
  6. [Prototype]
  7. public sealed partial class WeightedRandomPrototype : IWeightedRandomPrototype
  8. {
  9. [IdDataField]
  10. public string ID { get; private set; } = default!;
  11. [DataField("weights")]
  12. public Dictionary<string, float> Weights { get; private set; } = new();
  13. }