Files
tbd-station-14/Content.Shared/Speech/Components/EmoteBlockerComponent.cs
slarticodefast ee9d1032bb Move ChatSystem.Emotes to shared (#40866)
* move to shared

* entity effect to shared

* refactor: whitespaces+xml-doc typo fixups

* refactor: a little bit more of xml-doc typos fixups

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
2025-10-13 18:06:01 +00:00

26 lines
854 B
C#

using Content.Shared.Chat.Prototypes;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Speech.Components;
/// <summary>
/// Suppresses emotes with the given categories or ID.
/// Additionally, if the Scream Emote would be blocked, also blocks the Scream Action.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class EmoteBlockerComponent : Component
{
/// <summary>
/// Which categories of emotes are blocked by this component.
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<EmoteCategory> BlocksCategories = [];
/// <summary>
/// IDs of which specific emotes are blocked by this component.
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<ProtoId<EmotePrototype>> BlocksEmotes = [];
}