csharp
public sealed class ChatRateLimiterHow much somebody has said on each channel lately.
Remarks
⚠ Not a duplicate of RpcRouter's limiter, and doc 28's "reuse rather than invent" is still honoured. That one is per connection and cannot tell a whisper from guild chat; this one is per (player, channel), which is the cap a designer actually writes — "three trade posts a minute, and say what you like locally". They bound different things, and a realm hands the connection-wide number to RpcRouter as before.
Fields and properties (1)
public int CountHow many windows it is tracking.
Methods (2)
public bool Take(PlayerId player, ChatChannel channel, float now)Whether somebody may say one more thing, and records it if they may.
public int Forget(PlayerId player)Forgets everything, as a realm does when a player disconnects.
Used by (2)
- ChatFilterTestsVixen.Gameplay.Chat.Tests
- RateLimitVixen.Gameplay.Chat