Universal weldable component (#7955)
* Weldable component for door * Content update * Examine message * Universal visualizer * Small fix * Entity storage * Content * Fixed test * Update Content.Shared/Storage/SharedStorageComponent.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * Fixed loc string * Add public API to change welding time Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -75,24 +75,6 @@ public sealed class DoorComponent : Component, ISerializationHooks
|
||||
public bool Partial;
|
||||
#endregion
|
||||
|
||||
#region Welding
|
||||
// TODO WELDING. Consider creating a WeldableComponent for use with doors, crates and lockers? Currently they all
|
||||
// have their own welding logic.
|
||||
[DataField("weldingQuality", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string WeldingQuality = "Welding";
|
||||
|
||||
/// <summary>
|
||||
/// Whether the door can ever be welded shut.
|
||||
/// </summary>
|
||||
[DataField("weldable")]
|
||||
public bool Weldable = true;
|
||||
|
||||
/// <summary>
|
||||
/// Whether something is currently using a welder on this so DoAfter isn't spammed.
|
||||
/// </summary>
|
||||
public bool BeingWelded;
|
||||
#endregion
|
||||
|
||||
public bool BeingPried;
|
||||
|
||||
#region Sounds
|
||||
|
||||
Reference in New Issue
Block a user