mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-24 05:15:22 +00:00
add comments about zone modifiers to main file and tests to test file
This commit is contained in:
parent
37778229dc
commit
231c8974f5
2 changed files with 50 additions and 14 deletions
|
|
@ -830,6 +830,29 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
}
|
||||
|
||||
"TrainingZoneMessage" should {
|
||||
val string = hex"75 13 000000"
|
||||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case TrainingZoneMessage(zone, unk1, unk2, unk3) =>
|
||||
zone mustEqual 19
|
||||
unk1 mustEqual 0
|
||||
unk2 mustEqual 0
|
||||
unk3 mustEqual 0
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = TrainingZoneMessage(19, 0, 0, 0)
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
|
||||
"WeaponDryFireMessage" should {
|
||||
val string = hex"52 4C00"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue