Salvage dungeons (#14520)
This commit is contained in:
27
Content.Shared/Procedural/DungeonRoomPrototype.cs
Normal file
27
Content.Shared/Procedural/DungeonRoomPrototype.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Content.Shared.Tag;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Procedural;
|
||||
|
||||
[Prototype("dungeonRoom")]
|
||||
public sealed class DungeonRoomPrototype : IPrototype
|
||||
{
|
||||
[IdDataField] public string ID { get; } = string.Empty;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("tags", customTypeSerializer:typeof(PrototypeIdListSerializer<TagPrototype>))]
|
||||
public List<string> Tags = new();
|
||||
|
||||
[DataField("size", required: true)] public Vector2i Size;
|
||||
|
||||
/// <summary>
|
||||
/// Path to the file to use for the room.
|
||||
/// </summary>
|
||||
[DataField("atlas", required: true)] public ResourcePath AtlasPath = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Tile offset into the atlas to use for the room.
|
||||
/// </summary>
|
||||
[DataField("offset", required: true)] public Vector2i Offset;
|
||||
}
|
||||
Reference in New Issue
Block a user