Files
crystall-punk-14/Content.Server/_CP14/StationDungeonMap/Components/CP14ZLevelAutoPortalComponent.cs
Ed 79515d9303 Convenient Z-Levels (#421)
* clear ores and herbals frmo generation

* remake simple zlevels system

* GetMapOffset

* woohoo

* autolink between zlevels

* 5am

* somwthing sommetinh work

* Update CP14StationZLevelsSystem.cs

* fix biomespawner portal deletion

* some docs

* Revert "clear ores and herbals frmo generation"

This reverts commit 658d15a602.
2024-08-25 17:53:15 +03:00

24 lines
827 B
C#

using Content.Server._CP14.StationDungeonMap.EntitySystems;
using Robust.Shared.Prototypes;
namespace Content.Server._CP14.StationDungeonMap.Components;
/// <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!;
}