mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 07:55:07 +00:00
rename building_guid to object_guid
This commit is contained in:
parent
e326f454e5
commit
fce876480e
3 changed files with 6 additions and 6 deletions
|
|
@ -7,9 +7,9 @@ import scodec.codecs._
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The object_guid space for SetEmpireMessage is continent specific.
|
* The object_guid space for SetEmpireMessage is continent specific.
|
||||||
* SetEmpireMessage is usually followed by HackMessage (indicating the hack disposition of the same building_guid)
|
* SetEmpireMessage is usually followed by HackMessage (indicating the hack disposition of the same object_guid)
|
||||||
*/
|
*/
|
||||||
final case class SetEmpireMessage(building_guid : PlanetSideGUID,
|
final case class SetEmpireMessage(object_guid : PlanetSideGUID,
|
||||||
empire : PlanetSideEmpire.Value)
|
empire : PlanetSideEmpire.Value)
|
||||||
extends PlanetSideGamePacket {
|
extends PlanetSideGamePacket {
|
||||||
type Packet = SetEmpireMessage
|
type Packet = SetEmpireMessage
|
||||||
|
|
@ -19,7 +19,7 @@ final case class SetEmpireMessage(building_guid : PlanetSideGUID,
|
||||||
|
|
||||||
object SetEmpireMessage extends Marshallable[SetEmpireMessage] {
|
object SetEmpireMessage extends Marshallable[SetEmpireMessage] {
|
||||||
implicit val codec : Codec[SetEmpireMessage] = (
|
implicit val codec : Codec[SetEmpireMessage] = (
|
||||||
("building_guid" | PlanetSideGUID.codec) ::
|
("object_guid" | PlanetSideGUID.codec) ::
|
||||||
("empire" | PlanetSideEmpire.codec)
|
("empire" | PlanetSideEmpire.codec)
|
||||||
).as[SetEmpireMessage]
|
).as[SetEmpireMessage]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -801,8 +801,8 @@ class GamePacketTest extends Specification {
|
||||||
|
|
||||||
"decode" in {
|
"decode" in {
|
||||||
PacketCoding.DecodePacket(string).require match {
|
PacketCoding.DecodePacket(string).require match {
|
||||||
case SetEmpireMessage(building_guid, empire) =>
|
case SetEmpireMessage(object_guid, empire) =>
|
||||||
building_guid mustEqual PlanetSideGUID(2)
|
object_guid mustEqual PlanetSideGUID(2)
|
||||||
empire mustEqual PlanetSideEmpire.VS
|
empire mustEqual PlanetSideEmpire.VS
|
||||||
case default =>
|
case default =>
|
||||||
ko
|
ko
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
||||||
sendRawResponse(hex"31 85 6D 61 70 31 33 85 68 6F 6D 65 33 A4 9C 19 00 00 00 AE 30 5E 70 00 ")
|
sendRawResponse(hex"31 85 6D 61 70 31 33 85 68 6F 6D 65 33 A4 9C 19 00 00 00 AE 30 5E 70 00 ")
|
||||||
sendRawResponse(objectHex)
|
sendRawResponse(objectHex)
|
||||||
|
|
||||||
// These building_guids are specfic to VS Sanc
|
// These object_guids are specfic to VS Sanc
|
||||||
sendResponse(PacketCoding.CreateGamePacket(0, SetEmpireMessage(PlanetSideGUID(2), PlanetSideEmpire.VS))) //HART building C
|
sendResponse(PacketCoding.CreateGamePacket(0, SetEmpireMessage(PlanetSideGUID(2), PlanetSideEmpire.VS))) //HART building C
|
||||||
sendResponse(PacketCoding.CreateGamePacket(0, SetEmpireMessage(PlanetSideGUID(29), PlanetSideEmpire.NC))) //South Villa Gun Tower
|
sendResponse(PacketCoding.CreateGamePacket(0, SetEmpireMessage(PlanetSideGUID(29), PlanetSideEmpire.NC))) //South Villa Gun Tower
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue