mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-05 13:10:20 +00:00
Packet: RequestDestroyMessage
* Add RequestDestroyMessage packet * Add RequestDestroyMessage test * Add RequestDestroyMessage handler stub
This commit is contained in:
parent
7ecbe203f8
commit
427429b34c
4 changed files with 43 additions and 1 deletions
|
|
@ -349,5 +349,25 @@ class GamePacketTest extends Specification {
|
|||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
|
||||
"RequestDestroyMessage" should {
|
||||
val string = hex"2D A49C"
|
||||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case RequestDestroyMessage(object_guid) =>
|
||||
object_guid mustEqual PlanetSideGUID(40100)
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = RequestDestroyMessage(PlanetSideGUID(40100))
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue