2023-01-23 02:07:57 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Map;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.DeviceNetwork.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StationLimitedNetworkComponent : Component
|
2023-01-23 02:07:57 +01:00
|
|
|
{
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
}
|