mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-21 15:43:36 +00:00
Merge branch 'avatar-grenade'
This commit is contained in:
commit
2a4cda557e
4 changed files with 82 additions and 1 deletions
|
|
@ -1398,6 +1398,27 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
}
|
||||
|
||||
"AvatarGrenadeStateMessage" should {
|
||||
val string = hex"A9 DA11 01"
|
||||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case AvatarGrenadeStateMessage(player_guid, state) =>
|
||||
player_guid mustEqual PlanetSideGUID(4570)
|
||||
state mustEqual GrenadeState.PRIMED
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = AvatarGrenadeStateMessage(PlanetSideGUID(4570), GrenadeState.PRIMED)
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
|
||||
"BroadcastWarpgateUpdateMessage" should {
|
||||
val string = hex"D9 0D 00 01 00 20"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue