ModernUO/Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs
Kamron Batman 7d9bc9ff0a
fix: Fixes thread guard and cleans up incoming packet reader (#1641)
### Summary
* Fixes syntax compile error when THREADGUARD is enabled.
* Removes `int packetLength` from incoming packet handles since they aren't needed.

### Developer Notes
Incoming packet handler `SpanReader` is now properly scoped to that packet by length.
2023-12-19 17:04:09 -08:00

18 lines
473 B
C#

using System.Buffers;
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, SpanReader reader)
{
state.Mobile.SendMessage("Ultima Store is not currently available.");
}
}
}