- [X] Moved packets from objects to functions - [X] Fixed bug where characters were showing up with their modded names in the character list Bumps release version
14 lines
351 B
C#
14 lines
351 B
C#
using System;
|
|
using Server.Network;
|
|
|
|
namespace Server.Tests.Network
|
|
{
|
|
public static class PacketTestUtilities
|
|
{
|
|
public static Span<byte> Compile(this Packet p) =>
|
|
p.Compile(false, out var length).AsSpan(0, length);
|
|
|
|
public static NetState CreateTestNetState() =>
|
|
new NetState(new MockSocket());
|
|
}
|
|
}
|