using Content.Shared.Storage.EntitySystems;
using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
namespace Content.Shared.Storage.Components;
///
/// Adds a verb to pick a random item from a container.
/// Only picks items that match the whitelist.
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(PickRandomSystem))]
public sealed partial class PickRandomComponent : Component
{
///
/// Whitelist for potential picked items.
///
[DataField, AutoNetworkedField]
public EntityWhitelist? Whitelist;
///
/// Locale id for the pick verb text.
///
[DataField, AutoNetworkedField]
public LocId VerbText = "comp-pick-random-verb-text";
///
/// Locale id for the empty storage message.
///
[DataField, AutoNetworkedField]
public LocId EmptyText = "comp-pick-random-empty";
}