Files
tbd-station-14/Content.Server/DeviceNetwork/Components/StationLimitedNetworkComponent.cs
2023-01-22 21:07:57 -04:00

23 lines
691 B
C#

using Robust.Shared.GameObjects;
using Robust.Shared.Map;
namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
public sealed class StationLimitedNetworkComponent : Component
{
/// <summary>
/// The station id the device is limited to.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public EntityUid? StationId;
/// <summary>
/// Whether the entity is allowed to receive packets from entities that are not tied to any station
/// </summary>
[DataField("allowNonStationPackets")]
[ViewVariables(VVAccess.ReadWrite)]
public bool AllowNonStationPackets = false;
}
}