Show / Hide Table of Contents

Class PickRandomComponent

Adds a verb to pick a random item from a container. Only picks items that match the whitelist.

Inheritance
System.Object
PickRandomComponent
Namespace: Content.Server.Storage.Components
Assembly: Content.Server.dll
Syntax
public sealed class PickRandomComponent : Component

Fields

| Improve this Doc View Source

EmptyText

Locale id for the empty storage message.

Declaration
public string EmptyText
Field Value
Type Description
System.String
| Improve this Doc View Source

VerbText

Locale id for the pick verb text.

Declaration
public string VerbText
Field Value
Type Description
System.String
| Improve this Doc View Source

Whitelist

Whitelist for potential picked items.

Declaration
public EntityWhitelist Whitelist
Field Value
Type Description
EntityWhitelist
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾