using System; using Content.Server.GameObjects.EntitySystems.DeviceNetwork; namespace Content.Server.Interfaces { /// /// Package based device network allowing devices to communicate with eachother /// public interface IDeviceNetwork { /// /// Registers a device with the device network /// /// The id of the network to register with /// The frequency the device receives packages on. Wired networks use frequency 0 /// The delegate that gets called when the device receives a message /// If the device should receive all packages on its frequency or only ones addressed to itself /// public DeviceNetworkConnection Register(int netId, int frequency, OnReceiveNetMessage messageHandler, bool receiveAll = false); /// public DeviceNetworkConnection Register(int netId, OnReceiveNetMessage messageHandler, bool receiveAll = false); public void Update(); } }