Files
tbd-station-14/Content.Shared/ComponentTable/ComponentTableComponent.cs
2025-04-27 02:13:52 -07:00

20 lines
636 B
C#

using Content.Shared.EntityTable.EntitySelectors;
using Robust.Shared.GameStates;
namespace Content.Shared.ComponentTable;
/// <summary>
/// Applies components from entities selected from the table on init.
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedComponentTableSystem))]
public sealed partial class ComponentTableComponent : Component
{
/// <summary>
/// The table from which to grab entities.
/// ALL components of the grabbed entities will be added to the holder of this component.
/// </summary>
[DataField(required: true)]
public EntityTableSelector Table = default!;
}