mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-26 07:19:09 +00:00
Requested changes
This commit is contained in:
parent
04ae44c3a9
commit
c41f0b41bd
1 changed files with 4 additions and 5 deletions
|
|
@ -4,7 +4,6 @@ package net.psforever.packet.game
|
|||
import net.psforever.packet.{GamePacketOpcode, Marshallable, PacketHelpers, PlanetSideGamePacket}
|
||||
import scodec.Codec
|
||||
import scodec.codecs._
|
||||
import net.psforever.packet.game.LoginRespMessage.{LoginError,StationError,StationSubscriptionStatus}
|
||||
|
||||
/**
|
||||
* This message is sent from the server to the client upon reception of a [[LoginMessage]].
|
||||
|
|
@ -29,9 +28,9 @@ import net.psforever.packet.game.LoginRespMessage.{LoginError,StationError,Stati
|
|||
* @param privilege If set above 10000, then the user has access to GM commands. Not sure of other values.
|
||||
*/
|
||||
final case class LoginRespMessage(token : String,
|
||||
error : LoginError.Type,
|
||||
stationError : StationError.Type,
|
||||
subscriptionStatus : StationSubscriptionStatus.Type,
|
||||
error : LoginRespMessage.LoginError.Type,
|
||||
stationError : LoginRespMessage.StationError.Type,
|
||||
subscriptionStatus : LoginRespMessage.StationSubscriptionStatus.Type,
|
||||
unkUIRelated : Long,
|
||||
username : String,
|
||||
privilege : Long) extends PlanetSideGamePacket {
|
||||
|
|
@ -81,4 +80,4 @@ object LoginRespMessage extends Marshallable[LoginRespMessage] {
|
|||
.flatZip(priv => bool) // really not so sure about this bool part. client gets just a single bit
|
||||
.xmap[Long]({case (a, _) => a}, priv => (priv, (priv & 1) == 1))
|
||||
).as[LoginRespMessage]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue