changing continent id to normal data types and away from PlanetSideGUID in ZoneForcedCavernConnections and ContinentalLockUpdate; implementing ForcedZoneCavernConnections and ContinentalLockUpdate in WSA

This commit is contained in:
FateJH 2018-03-04 22:33:34 -05:00
parent b61097a22d
commit f0bec9cf3a
5 changed files with 13 additions and 12 deletions

View file

@ -13,7 +13,7 @@ class ContinentalLockUpdateMessageTest extends Specification {
"decode" in {
PacketCoding.DecodePacket(string).require match {
case ContinentalLockUpdateMessage(continent_guid, empire) =>
continent_guid mustEqual PlanetSideGUID(22)
continent_guid mustEqual 22
empire mustEqual PlanetSideEmpire.NC
case _ =>
ko
@ -21,7 +21,7 @@ class ContinentalLockUpdateMessageTest extends Specification {
}
"encode" in {
val msg = ContinentalLockUpdateMessage(PlanetSideGUID(22), PlanetSideEmpire.NC)
val msg = ContinentalLockUpdateMessage(22, PlanetSideEmpire.NC)
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
pkt mustEqual string

View file

@ -21,7 +21,7 @@ class ZoneForcedCavernConnectionsMessageTest extends Specification {
}
"encode" in {
val msg = ZoneForcedCavernConnectionsMessage(PlanetSideGUID(32), 1)
val msg = ZoneForcedCavernConnectionsMessage(32, 1)
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
pkt mustEqual string