using Content.Shared.DeviceNetwork.Components;
namespace Content.Shared.DeviceNetwork.Systems;
public abstract class SharedDeviceNetworkSystem : EntitySystem
{
///
/// Sends the given payload as a device network packet to the entity with the given address and frequency.
/// Addresses are given to the DeviceNetworkComponent of an entity when connecting.
///
/// The EntityUid of the sending entity
/// The address of the entity that the packet gets sent to. If null, the message is broadcast to all devices on that frequency (except the sender)
/// The frequency to send on
/// The data to be sent
/// Returns true when the packet was successfully enqueued.
public virtual bool QueuePacket(EntityUid uid,
string? address,
NetworkPayload data,
uint? frequency = null,
int? network = null,
DeviceNetworkComponent? device = null)
{
return false;
}
}