using Content.Shared.Storage;
using Robust.Shared.Audio;
namespace Content.Server.Storage.Components
{
///
/// Spawns items when used in hand.
///
[RegisterComponent]
public sealed partial class SpawnItemsOnUseComponent : Component
{
///
/// The list of entities to spawn, with amounts and orGroups.
///
[DataField("items", required: true)]
public List Items = new();
///
/// A sound to play when the items are spawned. For example, gift boxes being unwrapped.
///
[DataField("sound")]
public SoundSpecifier? Sound = null;
///
/// How many uses before the item should delete itself.
///
[ViewVariables(VVAccess.ReadWrite)]
[DataField("uses")]
public int Uses = 1;
}
}