mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-15 08:24:39 +00:00
OutfitListEvent cleanup
This commit is contained in:
parent
72a8a7cd89
commit
8de797087f
1 changed files with 5 additions and 7 deletions
|
|
@ -37,7 +37,6 @@ object OutfitListEventAction {
|
||||||
*/
|
*/
|
||||||
final case class Unk3(
|
final case class Unk3(
|
||||||
unk1: Long,
|
unk1: Long,
|
||||||
data: ByteVector
|
|
||||||
) extends OutfitListEventAction(code = 3)
|
) extends OutfitListEventAction(code = 3)
|
||||||
|
|
||||||
final case class Unknown(badCode: Int, data: BitVector) extends OutfitListEventAction(badCode)
|
final case class Unknown(badCode: Int, data: BitVector) extends OutfitListEventAction(badCode)
|
||||||
|
|
@ -67,16 +66,15 @@ object OutfitListEventAction {
|
||||||
)
|
)
|
||||||
|
|
||||||
val Unk3Codec: Codec[Unk3] = (
|
val Unk3Codec: Codec[Unk3] = (
|
||||||
("unk1" | uint32L) ::
|
("unk1" | uint32L)
|
||||||
("data" | bytes)
|
|
||||||
).xmap[Unk3](
|
).xmap[Unk3](
|
||||||
{
|
{
|
||||||
case u1 :: data :: HNil =>
|
case u1 =>
|
||||||
Unk3(u1, data)
|
Unk3(u1)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
case Unk3(u1, data) =>
|
case Unk3(u1) =>
|
||||||
u1 :: data :: HNil
|
u1
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue