using Content.Shared.EntityTable.EntitySelectors;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
///
/// Spawns an entity table at this entity when triggered.
/// If TargetUser is true it will be spawned at their location.
///
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class SpawnEntityTableOnTriggerComponent : BaseXOnTriggerComponent
{
///
/// The table to spawn.
///
[DataField(required: true), AutoNetworkedField]
public EntityTableSelector Table;
///
/// Use MapCoordinates for spawning?
/// Set to true if you don't want the new entity parented to the spawner.
///
[DataField, AutoNetworkedField]
public bool UseMapCoords;
///
/// Whether to use predicted spawning.
///
/// Randomization in EntityTables is not currently predicted! Use with caution.
[DataField, AutoNetworkedField]
public bool Predicted;
}