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

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

23 lines
717 B
C#

using Content.Server.Power.EntitySystems;
namespace Content.Server.Power.Components
{
[RegisterComponent]
[Access(typeof(ExtensionCableSystem))]
public sealed partial class ExtensionCableReceiverComponent : Component
{
[ViewVariables]
public Entity<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;
}
}