using System.Collections.Generic;
using Content.Shared.Sound;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Storage.Components
{
///
/// Spawns items when used in hand.
///
[RegisterComponent]
public class SpawnItemsOnUseComponent : Component
{
public override string Name => "SpawnItemsOnUse";
///
/// The list of entities to spawn, with amounts and orGroups.
///
///
[DataField("items", required: true)]
public List Items = new List();
///
/// 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.
///
///
[DataField("uses")]
public int Uses = 1;
}
}