6
StarHorizon_Public/Content.Server/Storage/Components/SpawnTableOnUseComponent.cs
2025-11-03 10:15:18 +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!;
}