mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-04 04:30:21 +00:00
comments and tests
This commit is contained in:
parent
91a429506f
commit
a3d8d891a1
2 changed files with 41 additions and 3 deletions
|
|
@ -1325,6 +1325,29 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
}
|
||||
|
||||
"PlayerStasisMessage" should {
|
||||
val string = hex"8A 4B 00 80"
|
||||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case PlayerStasisMessage(player_guid, stasis) =>
|
||||
player_guid mustEqual PlanetSideGUID(75)
|
||||
stasis mustEqual true
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
"encode" in {
|
||||
val msg = PlayerStasisMessage(PlanetSideGUID(75))
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"ContinentalLockUpdateMessage" should {
|
||||
val string = hex"A8 16 00 40"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue