* 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.
29 lines
783 B
C#
29 lines
783 B
C#
using Content.Server._CP14.StationDungeonMap.EntitySystems;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Server._CP14.StationDungeonMap.Components;
|
|
|
|
/// <summary>
|
|
/// Initializes the z-level system by creating a series of linked maps
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(CP14StationZLevelsSystem))]
|
|
public sealed partial class CP14StationZLevelsComponent : Component
|
|
{
|
|
[DataField(required: true)]
|
|
public int DefaultMapLevel = 0;
|
|
|
|
[DataField(required: true)]
|
|
public Dictionary<int, CP14ZLevelEntry> Levels = new();
|
|
|
|
public bool Initialized = false;
|
|
|
|
public Dictionary<MapId, int> LevelEntities = new();
|
|
}
|
|
|
|
[DataRecord, Serializable]
|
|
public sealed class CP14ZLevelEntry
|
|
{
|
|
public ResPath? Path { get; set; } = null;
|
|
}
|