Files
tbd-station-14/Content.Server/Power/Components/ExtensionCableProviderComponent.cs
Tayrtahn e0870d0cd2 Cleanup: ExtensionCableSystem (#36052)
* Use Entity<T> and avoid Owner

* Use SharedMapSystem
2025-04-15 21:01:40 +02:00

27 lines
891 B
C#

using Content.Server.Power.EntitySystems;
namespace Content.Server.Power.Components
{
[RegisterComponent]
[Access(typeof(ExtensionCableSystem))]
public sealed partial class ExtensionCableProviderComponent : Component
{
/// <summary>
/// The max distance this can connect to <see cref="ExtensionCableReceiverComponent"/>s from.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("transferRange")]
public int TransferRange { get; set; } = 3;
[ViewVariables] public List<Entity<ExtensionCableReceiverComponent>> LinkedReceivers { get; } = new();
/// <summary>
/// If <see cref="ExtensionCableReceiverComponent"/>s should consider connecting to this.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public bool Connectable { get; set; } = true;
}
}