Predict PickRandom verb (#39326)
Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
using Content.Server.Storage.EntitySystems;
|
||||
using Content.Shared.Whitelist;
|
||||
|
||||
namespace Content.Server.Storage.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Adds a verb to pick a random item from a container.
|
||||
/// Only picks items that match the whitelist.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(PickRandomSystem))]
|
||||
public sealed partial class PickRandomComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whitelist for potential picked items.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public EntityWhitelist? Whitelist;
|
||||
|
||||
/// <summary>
|
||||
/// Locale id for the pick verb text.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public LocId VerbText = "comp-pick-random-verb-text";
|
||||
|
||||
/// <summary>
|
||||
/// Locale id for the empty storage message.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public LocId EmptyText = "comp-pick-random-empty";
|
||||
}
|
||||
Reference in New Issue
Block a user