Replaces multi-cast delegates with function pointers to gain 25% in performance and lower allocations.
17 lines
479 B
C#
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.");
|
|
}
|
|
}
|
|
}
|