using Content.Server.Spawners.EntitySystems;
using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Spawners.Components;
///
/// A spawn point that spawns a player into a target container rather than simply spawning them at a position.
/// Occurs before regular spawn points but after arrivals.
///
[RegisterComponent]
[Access(typeof(ContainerSpawnPointSystem))]
public sealed partial class ContainerSpawnPointComponent : Component, ISpawnPoint
{
///
/// The ID of the container that this entity will spawn players into
///
[DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
public string ContainerId = string.Empty;
///
/// An optional job specifier
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public ProtoId? Job;
///
/// The type of spawn point
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SpawnPointType SpawnType { get; set; } = SpawnPointType.Unset;
}