Vixen
c7401864
csharp
public sealed class ChatPipeline

The filters a message goes through, in order.

Read the guide page for this →

Remarks

⚠ Ordered, and the order is a policy rather than an accident. The cheap structural checks come first because they reject most of what is rejected and cost nothing; a game-supplied word filter comes last because it is the expensive one and there is no point scanning a message that was too long anyway.

⚠ A rejection stops the pipeline. Running the rest to collect every reason would mean telling a rate-limited spammer which of their words are also on the list.

Fields and properties (3)

  • public int Count

    How many filters it holds.

  • public IReadOnlyList<IChatFilter> Filters

    Them, in the order they run.

  • public IChatFilter? LastRefusedBy

    Which filter refused the last message, or null.

Methods (2)

Used by (3)

  • ChatFilterTestsVixen.Gameplay.Chat.Tests
  • ChatRouterVixen.Gameplay.Chat
  • ChatRouterTestsVixen.Gameplay.Chat.Tests