~ruther/NosTale-Anonymizer

ref: 879aafdb3aca7ebba88206efa406901fe9a7f4c6 NosTale-Anonymizer/src/Anonymizer/Movers/Basic/SuPacketMover.cs -rw-r--r-- 636 bytes
879aafdb — František Boháček feat: add basic anonymizer function 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
//  SuPacketMover.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.Battle;

namespace Anonymizer.Movers.Basic;

/// <inheritdoc />
public class SuPacketMover : AbstractMover<SuPacket>
{
    /// <inheritdoc />
    public override SuPacket Move(IAnonymizer anonymizer, SuPacket packet)
        => packet with
        {
            CasterEntityId = anonymizer.AnonymizeId(packet.CasterEntityId),
            TargetEntityId = anonymizer.AnonymizeId(packet.TargetEntityId)
        };
}
Do not follow this link