ExtensionCableReceiverComponent.cs 709 B

12345678910111213141516171819202122
  1. using Content.Server.Power.EntitySystems;
  2. namespace Content.Server.Power.Components
  3. {
  4. [RegisterComponent]
  5. [Access(typeof(ExtensionCableSystem))]
  6. public sealed partial class ExtensionCableReceiverComponent : Component
  7. {
  8. [ViewVariables]
  9. public ExtensionCableProviderComponent? Provider { get; set; }
  10. [ViewVariables]
  11. public bool Connectable = false;
  12. /// <summary>
  13. /// The max distance from a <see cref="ExtensionCableProviderComponent"/> that this can receive power from.
  14. /// </summary>
  15. [ViewVariables(VVAccess.ReadWrite)]
  16. [DataField("receptionRange")]
  17. public int ReceptionRange { get; set; } = 3;
  18. }
  19. }