forked from Dawn-of-Light/PacketLogConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PacketInfo.cs
31 lines (28 loc) · 916 Bytes
/
PacketInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
namespace PacketLogConverter
{
/// <summary>
/// Holds packet and its text index.
/// </summary>
public struct PacketInfo
{
public Packet Packet;
public int TextEndIndex;
public PacketLocation PacketLocation;
public static PacketInfo UNKNOWN = new PacketInfo(null, -1, PacketLogConverter.PacketLocation.UNKNOWN);
/// <summary>
/// Initializes a new instance of the <see cref="T:PacketInfo"/> class.
/// </summary>
/// <param name="newPacket">The new packet.</param>
/// <param name="newTextIndex">New index of the text.</param>
/// <param name="newPacketLocation">New packet location.</param>
public PacketInfo(Packet newPacket, int newTextIndex, PacketLocation newPacketLocation)
{
Packet = newPacket;
TextEndIndex = newTextIndex;
PacketLocation = newPacketLocation;
}
}
}