Class WeightedRandomEntityPrototype
Linter-friendly version of weightedRandom for Entity prototypes.
Inheritance
System.Object
WeightedRandomEntityPrototype
Namespace: Content.Shared.Random
Assembly: Content.Shared.dll
Syntax
public sealed class WeightedRandomEntityPrototype : object, IWeightedRandomPrototype, IPrototype
Properties
| Improve this Doc View SourceID
Declaration
public string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
Weights
Declaration
public Dictionary<string, float> Weights { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.Single> |
Implements
Robust.Shared.Prototypes.IPrototype