| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Robust.Shared.GameStates;
- using Robust.Shared.Prototypes;
- using Robust.Shared.Serialization;
- namespace Content.Shared.Tools.Components;
- [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
- public sealed partial class WeldableComponent : Component
- {
- /// <summary>
- /// Tool quality for welding.
- /// </summary>
- [DataField]
- public ProtoId<ToolQualityPrototype> WeldingQuality = "Welding";
- /// <summary>
- /// How much time does it take to weld/unweld entity.
- /// </summary>
- [DataField, AutoNetworkedField]
- public TimeSpan Time = TimeSpan.FromSeconds(1f);
- /// <summary>
- /// How much fuel does it take to weld/unweld entity.
- /// </summary>
- [DataField]
- public float Fuel = 3f;
- /// <summary>
- /// Shown when welded entity is examined.
- /// </summary>
- [DataField]
- public LocId? WeldedExamineMessage = "weldable-component-examine-is-welded";
- /// <summary>
- /// Is this entity currently welded shut?
- /// </summary>
- [DataField, AutoNetworkedField]
- public bool IsWelded;
- }
- [Serializable, NetSerializable]
- public enum WeldableVisuals : byte
- {
- IsWelded
- }
- [Serializable, NetSerializable]
- public enum WeldableLayers : byte
- {
- BaseWelded
- }
|