mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-01 19:23:38 +00:00
transforming an 8u field into a 6u field; modifying all other values in code
This commit is contained in:
parent
4d742e9fee
commit
515de6c507
3 changed files with 49 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue