Files
wwdpublic/Content.Shared/Chat/SharedChatEvents.cs
Kutosss d01e31eb80 Генокрады снова анонимны + небольшой багфикс эффектов эмоций (#710)
* Update GraphicsTab.xaml.cs

* генокрады

* Update ChangelingHivemindSystem.cs

* Apply suggestions from code review

* Update Content.Shared/Chat/SharedChatEvents.cs

* иконки

* Apply suggestions
2025-07-26 06:01:41 +03:00

39 lines
1.1 KiB
C#

using Content.Shared.Speech;
using Robust.Shared.Prototypes;
using Content.Shared.Inventory;
namespace Content.Shared.Chat;
/// <summary>
/// This event should be sent everytime an entity talks (Radio, local chat, etc...).
/// The event is sent to both the entity itself, and all clothing (For stuff like voice masks).
/// </summary>
public class TransformSpeakerNameEvent : EntityEventArgs, IInventoryRelayEvent // WWDP add sealed
{
public SlotFlags TargetSlots { get; } = SlotFlags.WITHOUT_POCKET;
public EntityUid Sender;
public string VoiceName;
public ProtoId<SpeechVerbPrototype>? SpeechVerb;
public TransformSpeakerNameEvent(EntityUid sender, string name)
{
Sender = sender;
VoiceName = name;
SpeechVerb = null;
}
}
/// <summary>
/// WWDP add
/// </summary>
[ByRefEvent]
public sealed class TransformRadioSpeakerNameEvent : TransformSpeakerNameEvent
{
public readonly Shared.Radio.RadioChannelPrototype Channel;
public TransformRadioSpeakerNameEvent(EntityUid sender, string name, Shared.Radio.RadioChannelPrototype channel) : base(sender, name)
{
Channel = channel;
}
}