mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-21 23:53:36 +00:00
Packet: WeaponJammedMessage
This commit is contained in:
commit
ae250bcf6b
3 changed files with 48 additions and 1 deletions
|
|
@ -796,6 +796,26 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
}
|
||||
|
||||
"WeaponJammedMessage" should {
|
||||
val string = hex"66 4C00"
|
||||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case WeaponJammedMessage(weapon_guid) =>
|
||||
weapon_guid mustEqual PlanetSideGUID(76)
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = WeaponJammedMessage(PlanetSideGUID(76))
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
|
||||
"PingMsg" should {
|
||||
val packet = hex"1a 00000000 b0360000"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue