Secret! (#8276)
Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
15
Content.Shared/Random/WeightedRandomPrototype.cs
Normal file
15
Content.Shared/Random/WeightedRandomPrototype.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Random;
|
||||
|
||||
/// <summary>
|
||||
/// Generic random weighting dataset to use.
|
||||
/// </summary>
|
||||
[Prototype("weightedRandom")]
|
||||
public sealed class WeightedRandomPrototype : IPrototype
|
||||
{
|
||||
[IdDataFieldAttribute] public string ID { get; } = default!;
|
||||
|
||||
[DataField("weights")]
|
||||
public Dictionary<string, float> Weights = new();
|
||||
}
|
||||
Reference in New Issue
Block a user