Targets .NET Core 3.0 (#39)

This commit is contained in:
Kamron Batman 2019-08-02 17:53:18 -07:00 committed by GitHub
parent 0993c03b70
commit 08bf44af9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 1473 additions and 14244 deletions

View file

@ -18,15 +18,17 @@
*
***************************************************************************/
using System;
namespace Server.Network
{
public delegate void OnPacketReceive(NetState state, PacketReader pvSrc);
public delegate bool ThrottlePacketCallback(NetState state);
public delegate TimeSpan ThrottlePacketCallback(NetState state);
public class PacketHandler
{
public PacketHandler(int packetID, int length, bool ingame, OnPacketReceive onReceive)
public PacketHandler(int packetID, long length, bool ingame, OnPacketReceive onReceive)
{
PacketID = packetID;
Length = length;
@ -36,7 +38,7 @@ namespace Server.Network
public int PacketID{ get; }
public int Length{ get; }
public long Length{ get; }
public OnPacketReceive OnReceive{ get; }
@ -44,4 +46,4 @@ namespace Server.Network
public bool Ingame{ get; }
}
}
}