Files
wwdpublic/Content.Server/Storage/Components/SpawnTableOnUseComponent.cs
deltanedas faf671e169 add SpawnTableOnUse (#32620)
* add SpawnTableOnUse

* make BaseEmitSound more flexible and remove sound from spawntable

* add log

* :trollface:

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
(cherry picked from commit 2635888b6ae226f34b572175a3feb99d23a52881)
2025-09-27 12:21:16 +03:00

18 lines
523 B
C#

using Content.Server.Storage.EntitySystems;
using Content.Shared.EntityTable.EntitySelectors;
namespace Content.Server.Storage.Components;
/// <summary>
/// Spawns items from an entity table when used in hand.
/// </summary>
[RegisterComponent, Access(typeof(SpawnTableOnUseSystem))]
public sealed partial class SpawnTableOnUseComponent : Component
{
/// <summary>
/// The entity table to select entities from.
/// </summary>
[DataField(required: true)]
public EntityTableSelector Table = default!;
}