ModernUO/Projects/UOContent/Assistants/AssistantProtocol.cs
Kamron Batman 4f28e1e3c4
fix: Adds back razor/assistuo negotiations (#1089)
* [X] Adds Razor negotiations
* [X] Adds AssistUO "handshake" 🙄
2022-06-25 01:47:45 -07:00

19 lines
584 B
C#

namespace Server.Network;
public static class AssistantProtocol
{
private static PacketHandler[] _handlers;
public static void Configure()
{
_handlers = ProtocolExtensions<AssistantsProtocolInfo>.Register(new AssistantsProtocolInfo());
}
public static unsafe void Register(int cmd, bool ingame, delegate*<NetState, CircularBufferReader, int, void> onReceive) =>
_handlers[cmd] = new PacketHandler(cmd, 0, ingame, onReceive);
private struct AssistantsProtocolInfo : IProtocolExtensionsInfo
{
public int PacketId => 0xF0;
}
}