2022-07-17 22:02:03 -04:00
|
|
|
using Robust.Shared.Prototypes;
|
2024-08-03 20:31:45 -07:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array;
|
2021-12-03 15:35:57 +01:00
|
|
|
using Robust.Shared.Utility;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Decals
|
|
|
|
|
{
|
|
|
|
|
[Prototype("decal")]
|
2024-08-03 20:31:45 -07:00
|
|
|
public sealed partial class DecalPrototype : IPrototype, IInheritingPrototype
|
2021-12-03 15:35:57 +01:00
|
|
|
{
|
2023-01-19 03:56:45 +01:00
|
|
|
[IdDataField] public string ID { get; } = null!;
|
2023-08-22 18:14:33 -07:00
|
|
|
[DataField("sprite")] public SpriteSpecifier Sprite { get; private set; } = SpriteSpecifier.Invalid;
|
2021-12-03 15:35:57 +01:00
|
|
|
[DataField("tags")] public List<string> Tags = new();
|
2024-11-18 14:40:52 +03:00
|
|
|
[DataField("showMenu")] public bool ShowMenu = false; //CrystallEdge decal filter
|
2022-08-29 15:59:19 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// If the decal is rotated compared to our eye should we snap it to south.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("snapCardinals")] public bool SnapCardinals = false;
|
2023-09-18 19:17:48 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// True if this decal is cleanable by default.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool DefaultCleanable;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// True if this decal has custom colors applied by default
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool DefaultCustomColor;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// True if this decal snaps to a tile by default
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool DefaultSnap = true;
|
2024-08-03 20:31:45 -07:00
|
|
|
|
|
|
|
|
[ParentDataField(typeof(AbstractPrototypeIdArraySerializer<DecalPrototype>))]
|
|
|
|
|
public string[]? Parents { get; }
|
|
|
|
|
|
|
|
|
|
[NeverPushInheritance]
|
|
|
|
|
[AbstractDataField]
|
|
|
|
|
public bool Abstract { get; }
|
|
|
|
|
|
2021-12-03 15:35:57 +01:00
|
|
|
}
|
|
|
|
|
}
|