using Content.Shared.RCD.Systems; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared.RCD.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(RCDSystem))] public sealed partial class RCDDeconstructableComponent : Component { /// /// Number of charges consumed when the deconstruction is completed /// [DataField, ViewVariables(VVAccess.ReadWrite)] public int Cost = 1; /// /// The length of the deconstruction /// [DataField, ViewVariables(VVAccess.ReadWrite)] public float Delay = 1f; /// /// The visual effect that plays during deconstruction /// [DataField("fx"), ViewVariables(VVAccess.ReadWrite)] public EntProtoId? Effect = null; /// /// Toggles whether this entity is deconstructable or not /// [DataField, ViewVariables(VVAccess.ReadWrite)] public bool Deconstructable = true; }