using JetBrains.Annotations; using Robust.Shared.Prototypes; namespace Content.Shared.Radio.EntitySystems; /// /// This system handles intrinsic radios and the general process of converting radio messages into chat messages. /// public abstract partial class SharedRadioSystem : EntitySystem { /// /// Send radio message to all active radio listeners. /// [PublicAPI] public void SendRadioMessage(EntityUid messageSource, string message, ProtoId channel, EntityUid radioSource, bool escapeMarkup = true) { SendRadioMessage(messageSource, message, ProtoMan.Index(channel), radioSource, escapeMarkup: escapeMarkup); } /// /// Sends a radio message to all active radio listeners. /// /// Entity that spoke the message. /// Message to send over the radio. /// Radio channel to send the message on. /// Entity transmitting the message. /// Whether markup in the message should be escaped. [PublicAPI] public virtual void SendRadioMessage(EntityUid messageSource, string message, RadioChannelPrototype channel, EntityUid radioSource, bool escapeMarkup = true) { } }