fix(core): Converts boat packets (#416)
- [X] Converts boat packets - [X] Makes a packet container builder for packet 0xF7 - [X] Generalizes world item packet so it works for mobiles too Notes: - This PR doesn't address proper smooth movement for boats.
This commit is contained in:
parent
b4b1b0b122
commit
08f05afd01
15 changed files with 619 additions and 220 deletions
|
|
@ -24,5 +24,11 @@ namespace Server.Tests.Network
|
|||
|
||||
return new NetState(socket.Object);
|
||||
}
|
||||
|
||||
public static Map CreateTestMap()
|
||||
{
|
||||
var map = new Mock<Map>();
|
||||
return map.Object;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ namespace Server.Tests.Network
|
|||
var expected = new WorldItemSA(item).Compile();
|
||||
|
||||
using var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.ProtocolChanges = ns.ProtocolChanges | ProtocolChanges.StygianAbyss;
|
||||
ns.ProtocolChanges = ProtocolChanges.StygianAbyss;
|
||||
ns.SendWorldItem(item);
|
||||
|
||||
var result = ns.SendPipe.Reader.TryRead();
|
||||
|
|
@ -104,7 +104,7 @@ namespace Server.Tests.Network
|
|||
var expected = new WorldItemHS(item).Compile();
|
||||
|
||||
using var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.ProtocolChanges = ns.ProtocolChanges | ProtocolChanges.StygianAbyss | ProtocolChanges.HighSeas;
|
||||
ns.ProtocolChanges = ProtocolChanges.StygianAbyss | ProtocolChanges.HighSeas;
|
||||
ns.SendWorldItem(item);
|
||||
|
||||
var result = ns.SendPipe.Reader.TryRead();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue