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.
This commit is contained in:
parent
25a75fdf24
commit
7d9bc9ff0a
31 changed files with 190 additions and 157 deletions
|
|
@ -29,7 +29,7 @@ public static class IncomingEntityPackets
|
|||
IncomingPackets.Register(0xD6, 0, true, &BatchQueryProperties);
|
||||
}
|
||||
|
||||
public static void ObjectHelpRequest(NetState state, SpanReader reader, int packetLength)
|
||||
public static void ObjectHelpRequest(NetState state, SpanReader reader)
|
||||
{
|
||||
var from = state.Mobile;
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ public static class IncomingEntityPackets
|
|||
}
|
||||
}
|
||||
|
||||
public static void UseReq(NetState state, SpanReader reader, int packetLength)
|
||||
public static void UseReq(NetState state, SpanReader reader)
|
||||
{
|
||||
var from = state.Mobile;
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ public static class IncomingEntityPackets
|
|||
}
|
||||
}
|
||||
|
||||
public static void LookReq(NetState state, SpanReader reader, int packetLength)
|
||||
public static void LookReq(NetState state, SpanReader reader)
|
||||
{
|
||||
var from = state.Mobile;
|
||||
|
||||
|
|
@ -151,7 +151,7 @@ public static class IncomingEntityPackets
|
|||
}
|
||||
}
|
||||
|
||||
public static void BatchQueryProperties(NetState state, SpanReader reader, int packetLength)
|
||||
public static void BatchQueryProperties(NetState state, SpanReader reader)
|
||||
{
|
||||
if (!ObjectPropertyList.Enabled)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue