2024-12-09 20:39:46 +03:00
|
|
|
using Content.Server._CP14.ZLevels.EntitySystems;
|
2024-08-25 19:53:15 +05:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2024-12-09 20:39:46 +03:00
|
|
|
namespace Content.Server._CP14.ZLevels.Components;
|
2024-08-25 19:53:15 +05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// automatically creates a linked portal at a different relative z-level, and then the component is removed
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(CP14StationZLevelsSystem))]
|
|
|
|
|
public sealed partial class CP14ZLevelAutoPortalComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// relative neighboring layer. Ideally, -1 is the neighboring bottom layer, +1 is the neighboring top layer
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public int ZLevelOffset = 0;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// prototype of the portal being created on the other side
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public EntProtoId OtherSideProto = default!;
|
|
|
|
|
}
|