mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-16 00:44:43 +00:00
outfit_(gu)id is uint32L (too)
This commit is contained in:
parent
6e23b701a6
commit
b242c4c4bf
1 changed files with 6 additions and 8 deletions
|
|
@ -8,8 +8,7 @@ import scodec.codecs._
|
||||||
import shapeless.{::, HNil}
|
import shapeless.{::, HNil}
|
||||||
|
|
||||||
final case class OutfitMemberUpdate(
|
final case class OutfitMemberUpdate(
|
||||||
outfit_guid: PlanetSideGUID,
|
outfit_guid: Long,
|
||||||
unk1: Int,
|
|
||||||
avatar_guid: PlanetSideGUID,
|
avatar_guid: PlanetSideGUID,
|
||||||
unk3: Int,
|
unk3: Int,
|
||||||
) extends PlanetSideGamePacket {
|
) extends PlanetSideGamePacket {
|
||||||
|
|
@ -20,18 +19,17 @@ final case class OutfitMemberUpdate(
|
||||||
|
|
||||||
object OutfitMemberUpdate extends Marshallable[OutfitMemberUpdate] {
|
object OutfitMemberUpdate extends Marshallable[OutfitMemberUpdate] {
|
||||||
implicit val codec: Codec[OutfitMemberUpdate] = (
|
implicit val codec: Codec[OutfitMemberUpdate] = (
|
||||||
("outfit_guid" | PlanetSideGUID.codec) ::
|
("outfit_guid" | uint32L) ::
|
||||||
("unk1" | uint16L) ::
|
|
||||||
("avatar_guid" | PlanetSideGUID.codec) ::
|
("avatar_guid" | PlanetSideGUID.codec) ::
|
||||||
("unk3" | uint8L)
|
("unk3" | uint8L)
|
||||||
).xmap[OutfitMemberUpdate](
|
).xmap[OutfitMemberUpdate](
|
||||||
{
|
{
|
||||||
case outfit_guid :: u1 :: u2 :: u3 :: HNil =>
|
case outfit_guid :: u2 :: u3 :: HNil =>
|
||||||
OutfitMemberUpdate(outfit_guid, u1, u2, u3)
|
OutfitMemberUpdate(outfit_guid, u2, u3)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case OutfitMemberUpdate(outfit_guid, u1, u2, u3) =>
|
case OutfitMemberUpdate(outfit_guid, u2, u3) =>
|
||||||
outfit_guid :: u1 :: u2 :: u3 :: HNil
|
outfit_guid :: u2 :: u3 :: HNil
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue