mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-26 07:19:09 +00:00
misc
This commit is contained in:
parent
f145fd49f2
commit
e326f454e5
3 changed files with 25 additions and 4 deletions
|
|
@ -7,9 +7,9 @@ import scodec.codecs._
|
|||
|
||||
/**
|
||||
* The object_guid space for SetEmpireMessage is continent specific.
|
||||
* SetEmpireMessage is usually followed by HackMessage (indicating the hack disposition of the same object_guid)
|
||||
* SetEmpireMessage is usually followed by HackMessage (indicating the hack disposition of the same building_guid)
|
||||
*/
|
||||
final case class SetEmpireMessage(continent_guid : PlanetSideGUID,
|
||||
final case class SetEmpireMessage(building_guid : PlanetSideGUID,
|
||||
empire : PlanetSideEmpire.Value)
|
||||
extends PlanetSideGamePacket {
|
||||
type Packet = SetEmpireMessage
|
||||
|
|
@ -19,7 +19,7 @@ final case class SetEmpireMessage(continent_guid : PlanetSideGUID,
|
|||
|
||||
object SetEmpireMessage extends Marshallable[SetEmpireMessage] {
|
||||
implicit val codec : Codec[SetEmpireMessage] = (
|
||||
("object_guid" | PlanetSideGUID.codec) ::
|
||||
("building_guid" | PlanetSideGUID.codec) ::
|
||||
("empire" | PlanetSideEmpire.codec)
|
||||
).as[SetEmpireMessage]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue