StationLimitedNetworkComponent.cs 699 B

12345678910111213141516171819202122
  1. using Robust.Shared.GameObjects;
  2. using Robust.Shared.Map;
  3. namespace Content.Server.DeviceNetwork.Components
  4. {
  5. [RegisterComponent]
  6. public sealed partial class StationLimitedNetworkComponent : Component
  7. {
  8. /// <summary>
  9. /// The station id the device is limited to.
  10. /// </summary>
  11. [ViewVariables(VVAccess.ReadWrite)]
  12. public EntityUid? StationId;
  13. /// <summary>
  14. /// Whether the entity is allowed to receive packets from entities that are not tied to any station
  15. /// </summary>
  16. [DataField("allowNonStationPackets")]
  17. [ViewVariables(VVAccess.ReadWrite)]
  18. public bool AllowNonStationPackets = false;
  19. }
  20. }