* haunted dungeon * Initial work Still needs prefab gen work to make it interesting. * ime a worm * weh * Work * Slight tweaks --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
34 lines
850 B
C#
34 lines
850 B
C#
using Content.Shared.Maps;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.Procedural.PostGeneration;
|
|
|
|
/// <summary>
|
|
/// Iterates room edges and places the relevant tiles and walls on any free indices.
|
|
/// </summary>
|
|
public sealed partial class BoundaryWallPostGen : IPostDunGen
|
|
{
|
|
[DataField]
|
|
public ProtoId<ContentTileDefinition> Tile = "FloorSteel";
|
|
|
|
[DataField]
|
|
public EntProtoId Wall = "WallSolid";
|
|
|
|
/// <summary>
|
|
/// Walls to use in corners if applicable.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? CornerWall;
|
|
|
|
[DataField]
|
|
public BoundaryWallFlags Flags = BoundaryWallFlags.Corridors | BoundaryWallFlags.Rooms;
|
|
}
|
|
|
|
[Flags]
|
|
public enum BoundaryWallFlags : byte
|
|
{
|
|
Rooms = 1 << 0,
|
|
Corridors = 1 << 1,
|
|
}
|