using Content.Shared.Chat; using Content.Shared.Language; using Content.Shared.Radio; namespace Content.Server.Radio; /// /// The message to display when the speaker can understand "language" /// The message to display when the speaker cannot understand "language" /// [ByRefEvent] public readonly record struct RadioReceiveEvent( EntityUid MessageSource, RadioChannelPrototype Channel, ChatMessage OriginalChatMsg, ChatMessage LanguageObfuscatedChatMsg, LanguagePrototype Language, EntityUid RadioSource ); /// /// Use this event to cancel sending message per receiver /// [ByRefEvent] public record struct RadioReceiveAttemptEvent(RadioChannelPrototype Channel, EntityUid RadioSource, EntityUid RadioReceiver) { public readonly RadioChannelPrototype Channel = Channel; public readonly EntityUid RadioSource = RadioSource; public readonly EntityUid RadioReceiver = RadioReceiver; public bool Cancelled = false; } /// /// Use this event to cancel sending message to every receiver /// [ByRefEvent] public record struct RadioSendAttemptEvent(RadioChannelPrototype Channel, EntityUid RadioSource) { public readonly RadioChannelPrototype Channel = Channel; public readonly EntityUid RadioSource = RadioSource; public bool Cancelled = false; }