using Content.Shared.Storage; using Robust.Shared.Audio; using Robust.Shared.Prototypes; namespace Content.Server._EE.Storage.Components; /// /// Spawns items at the entity's location when used, with rotation alignment and a text menu. /// I recommend not using it on normal items that fit in the hand; use SpawnItemsOnUse if that's the case. /// [RegisterComponent] public sealed partial class SpawnItemsAtLocationOnUseComponent : 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. /// [DataField("sound")] public SoundSpecifier? Sound; /// /// How many times the entity can be used before deleting itself. /// [DataField("uses")] public int Uses = 1; /// /// Localization ID for the verb text shown in the UI. /// [DataField] public LocId SpawnItemsVerbText = "spawn-items-verb"; }