Skip to content

Commit

Permalink
fill: fill BookEditAction and EmotePacket::Flags (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimuya4153 committed Sep 16, 2024
1 parent a472bc1 commit 624b1bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/mc/enums/BookEditAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

#include "mc/_HeaderOutputPredefine.h"

enum class BookEditAction {};
enum class BookEditAction : uchar {
Replace = 0x0,
Add = 0x1,
Delete = 0x2,
Swap = 0x3,
Sign = 0x4,
};
2 changes: 1 addition & 1 deletion src/mc/network/packet/BookEditPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BookEditPacket : public ::Packet {
int mPageIndex2; // this+0x3C
std::string mText1; // this+0x40
std::string mText2; // this+0x60
std::string mText3; // this+0x80
std::string mXuid; // this+0x80

// prevent constructor by default
BookEditPacket& operator=(BookEditPacket const&);
Expand Down
8 changes: 7 additions & 1 deletion src/mc/network/packet/EmotePacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@

class EmotePacket : public ::Packet {
public:
enum class Flags : uchar {
Invalid = 0x0,
ServerSide = 0x1,
MuteChat = 0x2,
};

ActorRuntimeID mRuntimeId; // this+0x30
std::string mPieceId; // this+0x38
std::string mXuid; // this+0x58
std::string mPlatformId; // this+0x78
uchar mFlags; // this+0x98
Flags mFlags; // this+0x98

// prevent constructor by default
EmotePacket& operator=(EmotePacket const&);
Expand Down

0 comments on commit 624b1bd

Please sign in to comment.