mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-21 11:55:19 +00:00
corrections to the structure of the packet and the data in the List; comments
This commit is contained in:
parent
6786d9934d
commit
4529006490
2 changed files with 36 additions and 16 deletions
|
|
@ -916,13 +916,14 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
|
||||
"HotSpotUpdateMessage" should {
|
||||
val stringClear = hex"9F 0500 10 00"
|
||||
val stringClear = hex"9F 0500 1 00 0"
|
||||
val stringOne = hex"9F 0500 1 01 0 00 2E9 00 145 80000 0"
|
||||
|
||||
"decode (clear)" in {
|
||||
PacketCoding.DecodePacket(stringClear).require match {
|
||||
case HotSpotUpdateMessage(continent_guid, unk, spots) =>
|
||||
continent_guid mustEqual PlanetSideGUID(5)
|
||||
unk mustEqual 16
|
||||
unk mustEqual 1
|
||||
spots.size mustEqual 0
|
||||
case _ =>
|
||||
ko
|
||||
|
|
@ -930,7 +931,7 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
|
||||
"encode (clear)" in {
|
||||
val msg = HotSpotUpdateMessage(PlanetSideGUID(5),16)
|
||||
val msg = HotSpotUpdateMessage(PlanetSideGUID(5),1)
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
pkt mustEqual stringClear
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue