mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-04-27 23:35:28 +00:00
encoding and decoding of byte-aligned Lists now working
This commit is contained in:
parent
6be873c4f6
commit
d40f64c053
2 changed files with 75 additions and 8 deletions
|
|
@ -975,9 +975,9 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
|
||||
"encode (two)" in {
|
||||
val msg = HotSpotUpdateMessage(PlanetSideGUID(5),1, HotSpotInfo(0,2000,0,2700,128)::HotSpotInfo(0,2750,0,1100,128)::Nil)
|
||||
val msg = HotSpotUpdateMessage(PlanetSideGUID(5),5, HotSpotInfo(0,2000,0,2700,128)::HotSpotInfo(0,2750,0,1100,128)::Nil)
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
pkt mustEqual stringOne
|
||||
pkt mustEqual stringTwo
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue