Show / Hide Table of Contents

Interface IWeightedRandomPrototype

IWeightedRandomPrototype implements a dictionary of strings to float weights to be used with Pick(IWeightedRandomPrototype, IRobustRandom).

Namespace: Content.Shared.Random
Assembly: Content.Shared.dll
Syntax
public interface IWeightedRandomPrototype : IPrototype

Properties

| Improve this Doc View Source

Weights

Declaration
Dictionary<string, float> Weights { get; }
Property Value
Type Description
Dictionary<System.String, System.Single>

Extension Methods

SharedRandomExtensions.Pick(IWeightedRandomPrototype, Random)
SharedRandomExtensions.Pick(IWeightedRandomPrototype, IRobustRandom)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾