ModernUO/Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs
Stefano Merotta f24b98f8e2
fix: Replaces throttlers and packet callbacks with function pointers (#1063)
Replaces multi-cast delegates with function pointers to gain 25% in performance and lower allocations.
2022-06-15 12:48:43 -07:00

17 lines
479 B
C#

using Server.Network;
namespace Server.Engines.UltimaStore
{
public static class UltimaStorePackets
{
public static unsafe void Configure()
{
IncomingPackets.Register(0xFA, 1, true, &UltimaStoreOpenRequest);
}
public static void UltimaStoreOpenRequest(NetState state, CircularBufferReader reader, int packetLength)
{
state.Mobile.SendMessage("Ultima Store is not currently available.");
}
}
}