Files
tbd-station-14/Content.Server/Speech/EntitySystems/UnblockableSpeechSystem.cs
slarticodefast 1469b9484d Add virtual chat API methods in Shared (#40895)
* move chat stuff to shared

* refactor: using cleanup +whitespaces + xml-doc

* review

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
2025-10-19 19:08:27 +00:00

19 lines
534 B
C#

using Content.Server.Speech.Components;
using Content.Shared.Chat;
namespace Content.Server.Speech.EntitySystems
{
public sealed class UnblockableSpeechSystem : EntitySystem
{
public override void Initialize()
{
SubscribeLocalEvent<UnblockableSpeechComponent, CheckIgnoreSpeechBlockerEvent>(OnCheck);
}
private void OnCheck(EntityUid uid, UnblockableSpeechComponent component, CheckIgnoreSpeechBlockerEvent args)
{
args.IgnoreBlocker = true;
}
}
}