mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-23 12:55:20 +00:00
adding a field to TrainingZone for divided byte-length
This commit is contained in:
parent
de590cd4e2
commit
13e0f55f39
2 changed files with 8 additions and 5 deletions
|
|
@ -835,15 +835,15 @@ class GamePacketTest extends Specification {
|
|||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case TrainingZoneMessage(zone) =>
|
||||
zone mustEqual 19
|
||||
case TrainingZoneMessage(zone, unk) =>
|
||||
zone mustEqual PlanetSideGUID(19)
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = TrainingZoneMessage(19)
|
||||
val msg = TrainingZoneMessage(PlanetSideGUID(19))
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue