mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-19 19:05:18 +00:00
Packet: ContinentalLockUpdateMessage (#44)
* added ContinentalLockUpdateMessage packet * adjustment to ContinentalLockUpdateMessage scaladoc * changing the type of empire in ContinentalLockUpdateMessage to a PlanetSideEmpire value called NEUTRAL
This commit is contained in:
parent
fc2ef50be6
commit
c92e1c7d84
5 changed files with 57 additions and 2 deletions
|
|
@ -624,6 +624,27 @@ class GamePacketTest extends Specification {
|
|||
}
|
||||
}
|
||||
|
||||
"ContinentalLockUpdateMessage" should {
|
||||
val string = hex"A8 16 00 40"
|
||||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case ContinentalLockUpdateMessage(continent_guid, empire) =>
|
||||
continent_guid mustEqual PlanetSideGUID(22)
|
||||
empire mustEqual PlanetSideEmpire.NC
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = ContinentalLockUpdateMessage(PlanetSideGUID(22), PlanetSideEmpire.NC)
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
}
|
||||
}
|
||||
|
||||
"WeaponFireMessage" should {
|
||||
val string = hex"34 44130029272F0B5DFD4D4EC5C00009BEF78172003FC0"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue