transforming an 8u field into a 6u field; modifying all other values in code

This commit is contained in:
FateJH 2019-12-31 23:38:20 -05:00
parent 4d742e9fee
commit 515de6c507
3 changed files with 49 additions and 41 deletions

View file

@ -13,14 +13,14 @@ class GenericObjectActionMessageTest extends Specification {
PacketCoding.DecodePacket(string).require match {
case GenericObjectActionMessage(object_guid, action) =>
object_guid mustEqual PlanetSideGUID(437)
action mustEqual 36
action mustEqual 9
case _ =>
ko
}
}
"encode" in {
val msg = GenericObjectActionMessage(PlanetSideGUID(437), 36)
val msg = GenericObjectActionMessage(PlanetSideGUID(437), 9)
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
pkt mustEqual string