Files
crystall-punk-14/Content.Shared/Procedural/PostGeneration/EntrancePostGen.cs

28 lines
879 B
C#
Raw Normal View History

2023-03-10 16:41:22 +11:00
using Content.Shared.Maps;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
2023-03-10 21:19:27 +11:00
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
2023-03-10 16:41:22 +11:00
namespace Content.Shared.Procedural.PostGeneration;
/// <summary>
/// Selects [count] rooms and places external doors to them.
/// </summary>
public sealed class EntrancePostGen : IPostDunGen
{
/// <summary>
/// How many rooms we place doors on.
/// </summary>
[DataField("count")]
public int Count = 1;
2023-03-10 21:19:27 +11:00
[DataField("entities", customTypeSerializer: typeof(PrototypeIdListSerializer<EntityPrototype>))]
public List<string> Entities = new()
{
"AirlockGlass"
};
2023-03-10 16:41:22 +11:00
[DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer<ContentTileDefinition>))]
public string Tile = "FloorSteel";
}