* 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>
26 lines
854 B
C#
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 = [];
|
|
}
|