using Content.Server.Tools.Systems; using Content.Shared.Tools; using Content.Shared.Tools.Components; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Tools.Components; /// /// Allows users to weld/unweld doors, crates and lockers. /// [RegisterComponent] [Access(typeof(WeldableSystem))] public sealed partial class WeldableComponent : SharedWeldableComponent { /// /// Tool quality for welding. /// [DataField("weldingQuality", customTypeSerializer: typeof(PrototypeIdSerializer))] [ViewVariables(VVAccess.ReadWrite)] public string WeldingQuality = "Welding"; /// /// Whether this entity can ever be welded shut. /// [DataField("weldable")] [ViewVariables(VVAccess.ReadWrite)] public bool Weldable = true; /// /// How much time does it take to weld/unweld entity. /// [DataField("time")] [ViewVariables(VVAccess.ReadWrite)] public TimeSpan WeldingTime = TimeSpan.FromSeconds(1f); /// /// Shown when welded entity is examined. /// [DataField("weldedExamineMessage")] [ViewVariables(VVAccess.ReadWrite)] public string? WeldedExamineMessage = "weldable-component-examine-is-welded"; /// /// Is this entity currently welded shut? /// [DataField("isWelded")] public bool IsWelded; }