Dungeon generation refactor (#17121)

This commit is contained in:
metalgearsloth
2023-06-27 19:17:42 +10:00
committed by GitHub
parent b3d395f214
commit cca1a78384
26 changed files with 1528 additions and 496 deletions

View File

@@ -0,0 +1,35 @@
using Content.Shared.Decals;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
namespace Content.Shared.Procedural.PostGeneration;
/// <summary>
/// Applies decal skirting to corridors.
/// </summary>
public sealed class CorridorDecalSkirtingPostGen : IPostDunGen
{
/// <summary>
/// Color to apply to decals.
/// </summary>
[DataField("color")]
public Color? Color;
/// <summary>
/// Decal where 1 edge is found.
/// </summary>
[DataField("cardinalDecals")]
public Dictionary<DirectionFlag, string> CardinalDecals = new();
/// <summary>
/// Decal where 1 corner edge is found.
/// </summary>
[DataField("pocketDecals")]
public Dictionary<Direction, string> PocketDecals = new();
/// <summary>
/// Decal where 2 or 3 edges are found.
/// </summary>
[DataField("cornerDecals")]
public Dictionary<DirectionFlag, string> CornerDecals = new();
}