mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
17 lines
500 B
C#
17 lines
500 B
C#
using Content.Shared.Mining;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Random;
|
|
|
|
/// <summary>
|
|
/// Linter-friendly version of weightedRandom for Ore prototypes.
|
|
/// </summary>
|
|
[Prototype]
|
|
public sealed partial class WeightedRandomOrePrototype : IWeightedRandomPrototype<OrePrototype>
|
|
{
|
|
[IdDataField]
|
|
public string ID { get; private set; } = default!;
|
|
|
|
[DataField(required: true)]
|
|
public Dictionary<ProtoId<OrePrototype>, float> Weights { get; private set; } = new();
|
|
}
|