IBasePowerNet.cs 944 B

12345678910111213141516171819202122232425262728
  1. using Content.Server.Power.Components;
  2. using Content.Server.Power.Pow3r;
  3. namespace Content.Server.Power.NodeGroups
  4. {
  5. public interface IBasePowerNet
  6. {
  7. /// <summary>
  8. /// Indicates whether this network forms some form of connection (more than one node).
  9. /// </summary>
  10. /// <remarks>
  11. /// Even "unconnected" power devices form a single-node power network all by themselves.
  12. /// To players, this doesn't look like they're connected to anything.
  13. /// This property accounts for this and forms a more intuitive check.
  14. /// </remarks>
  15. bool IsConnectedNetwork { get; }
  16. void AddConsumer(PowerConsumerComponent consumer);
  17. void RemoveConsumer(PowerConsumerComponent consumer);
  18. void AddSupplier(PowerSupplierComponent supplier);
  19. void RemoveSupplier(PowerSupplierComponent supplier);
  20. PowerState.Network NetworkNode { get; }
  21. }
  22. }