mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* radiosystem is funny * review Co-authored-by: slarticodefast <slarticodefast@users.noreply.github.com> Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> * dont forget your tests * dont forget your loc * networking Co-authored-by: Tayrtahn <Tayrtahn@users.noreply.github.com> * dont return because its breaks * uh * review Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com> * more predictions and cleanup * refactor: just me, being picky about whitespaces and commetns formatting --------- Co-authored-by: slarticodefast <slarticodefast@users.noreply.github.com> Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> Co-authored-by: Tayrtahn <Tayrtahn@users.noreply.github.com> Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com> Co-authored-by: Fildrance <fildrance@gmail.com>
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Radio.EntitySystems;
|
|
|
|
/// <summary>
|
|
/// This system handles intrinsic radios and the general process of converting radio messages into chat messages.
|
|
/// </summary>
|
|
public abstract partial class SharedRadioSystem : EntitySystem
|
|
{
|
|
/// <summary>
|
|
/// Send radio message to all active radio listeners.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public void SendRadioMessage(EntityUid messageSource,
|
|
string message,
|
|
ProtoId<RadioChannelPrototype> channel,
|
|
EntityUid radioSource,
|
|
bool escapeMarkup = true)
|
|
{
|
|
SendRadioMessage(messageSource, message, ProtoMan.Index(channel), radioSource, escapeMarkup: escapeMarkup);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sends a radio message to all active radio listeners.
|
|
/// </summary>
|
|
/// <param name="messageSource">Entity that spoke the message.</param>
|
|
/// <param name="message">Message to send over the radio.</param>
|
|
/// <param name="channel">Radio channel to send the message on.</param>
|
|
/// <param name="radioSource">Entity transmitting the message.</param>
|
|
/// <param name="escapeMarkup">Whether markup in the message should be escaped.</param>
|
|
[PublicAPI]
|
|
public virtual void SendRadioMessage(EntityUid messageSource,
|
|
string message,
|
|
RadioChannelPrototype channel,
|
|
EntityUid radioSource,
|
|
bool escapeMarkup = true)
|
|
{
|
|
|
|
}
|
|
}
|