20 lines
636 B
C#
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!;
|
|
}
|