Files
wwdpublic/Content.Server/Spawners/Components/ContainerSpawnPointComponent.cs
Nemanja 04d5a09774 fix cryosleepers deleting the station (#24143)
* fix cryogenic units deleting the station

* ship it

(cherry picked from commit 017450ef17ed19f24fee3375cd35967e974ab119)
2024-01-26 22:55:45 +01:00

31 lines
980 B
C#

using Content.Server.Spawners.EntitySystems;
namespace Content.Server.Spawners.Components;
/// <summary>
/// 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.
/// </summary>
[RegisterComponent]
[Access(typeof(ContainerSpawnPointSystem))]
public sealed partial class ContainerSpawnPointComponent : Component
{
/// <summary>
/// The ID of the container that this entity will spawn players into
/// </summary>
[DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
public string ContainerId = string.Empty;
/// <summary>
/// An optional job specifier
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public string? Job;
/// <summary>
/// The type of spawn point
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SpawnPointType SpawnType = SpawnPointType.Unset;
}