mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-09-30 23:02:48 +02:00
14 lines
306 B
C#
14 lines
306 B
C#
using Phantom.Utils.Collections;
|
|
|
|
namespace Phantom.Utils.Rpc.Message;
|
|
|
|
sealed class MessageReceiveTracker {
|
|
private readonly RangeSet<uint> receivedMessageIds = new ();
|
|
|
|
public bool ReceiveMessage(uint messageId) {
|
|
lock (receivedMessageIds) {
|
|
return receivedMessageIds.Add(messageId);
|
|
}
|
|
}
|
|
}
|