M src/Anonymizer/Extensions/ServiceCollectionExtensions.cs => src/Anonymizer/Extensions/ServiceCollectionExtensions.cs +1 -0
@@ 69,6 69,7 @@ public static class ServiceCollectionExtensions
.AddMover<RaidPacketMover, RaidPacket>()
.AddMover<RbossPacketMover, RbossPacket>()
.AddMover<RdlstPacketMover, RdlstPacket>()
+ .AddMover<RdlstfPacketMover, RdlstfPacket>()
.AddMover<SayPacketMover, SayPacket>()
.AddMover<StPacketMover, StPacket>()
.AddMover<SuPacketMover, SuPacket>()
A src/Anonymizer/Movers/Basic/RdlstfPacketMover.cs => src/Anonymizer/Movers/Basic/RdlstfPacketMover.cs +28 -0
@@ 0,0 1,28 @@
+//
+// RdlstfPacketMover.cs
+//
+// Copyright (c) František Boháček. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using NosSmooth.Packets.Server.Raids;
+
+namespace Anonymizer.Movers.Basic;
+
+/// <inheritdoc />
+public class RdlstfPacketMover : AbstractMover<RdlstfPacket>
+{
+ /// <inheritdoc />
+ public override RdlstfPacket Move(IAnonymizer anonymizer, RdlstfPacket packet)
+ => packet with
+ {
+ Players = packet.Players.Select
+ (
+ p => p with
+ {
+ Id = anonymizer.AnonymizeId(p.Id),
+ Name = anonymizer.AnonymizeName(p.Name)
+ }
+ )
+ .ToArray()
+ };
+}<
\ No newline at end of file