~ruther/NosTale-PacketLogger

ref: bff42b1d9da84456d7a5b71679859268dd8c6978 NosTale-PacketLogger/src/PacketLogger/Models/PacketComparer.cs -rw-r--r-- 513 bytes
bff42b1d — Rutherther feat: make packet strings smaller 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  PacketComparer.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 System.Collections.Generic;
using PacketLogger.Models.Packets;

namespace PacketLogger.Models;

/// <inheritdoc />
public class PacketComparer : IComparer<PacketInfo>
{
    /// <inheritdoc />
    public int Compare(PacketInfo x, PacketInfo y)
    {
        return x.PacketIndex.CompareTo(y.PacketIndex);
    }
}