fix: Updates encoded packet handler to use function pointers (#1066)
This commit is contained in:
parent
f24b98f8e2
commit
057cf87e60
6 changed files with 79 additions and 54 deletions
|
|
@ -6,12 +6,12 @@ namespace Server.Items
|
|||
{
|
||||
public static class WeaponAbilityPackets
|
||||
{
|
||||
public static void Configure()
|
||||
public static unsafe void Configure()
|
||||
{
|
||||
IncomingPackets.RegisterEncoded(0x19, true, SetAbility);
|
||||
IncomingPackets.RegisterEncoded(0x19, true, &SetAbility);
|
||||
}
|
||||
|
||||
public static void SetAbility(NetState state, IEntity e, EncodedReader reader)
|
||||
public static unsafe void SetAbility(NetState state, IEntity e, EncodedReader reader)
|
||||
{
|
||||
var m = state.Mobile;
|
||||
var index = reader.ReadInt32();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue