Files
tbd-station-14/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs
2022-02-16 18:23:23 +11:00

27 lines
854 B
C#

using Content.Server.Power.EntitySystems;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Power.Components
{
[RegisterComponent]
[Friend(typeof(ExtensionCableSystem))]
public sealed class ExtensionCableReceiverComponent : Component
{
[ViewVariables]
public ExtensionCableProviderComponent? Provider { get; set; }
[ViewVariables]
public bool Connectable = false;
/// <summary>
/// The max distance from a <see cref="ExtensionCableProviderComponent"/> that this can receive power from.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("receptionRange")]
public int ReceptionRange { get; set; } = 3;
}
}