Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
32
Server/Network/PacketHandler.cs
Normal file
32
Server/Network/PacketHandler.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace Server.Network
|
||||
{
|
||||
public delegate void OnPacketReceive(NetState state, PacketReader pvSrc);
|
||||
|
||||
public delegate bool ThrottlePacketCallback(byte packetID, NetState state, out bool drop);
|
||||
|
||||
public class PacketHandler
|
||||
{
|
||||
private readonly int m_PacketID;
|
||||
private readonly int m_Length;
|
||||
private readonly bool m_Ingame;
|
||||
private readonly OnPacketReceive m_OnReceive;
|
||||
|
||||
public PacketHandler(int packetID, int length, bool ingame, OnPacketReceive onReceive)
|
||||
{
|
||||
m_PacketID = packetID;
|
||||
m_Length = length;
|
||||
m_Ingame = ingame;
|
||||
m_OnReceive = onReceive;
|
||||
}
|
||||
|
||||
public int PacketID { get { return m_PacketID; } }
|
||||
|
||||
public int Length { get { return m_Length; } }
|
||||
|
||||
public OnPacketReceive OnReceive { get { return m_OnReceive; } }
|
||||
|
||||
public ThrottlePacketCallback ThrottleCallback { get; set; }
|
||||
|
||||
public bool Ingame { get { return m_Ingame; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user