Skip to content

Commit

Permalink
Registration of Packet 0xBE (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
GladieUO authored Oct 14, 2024
1 parent 9703cef commit f051889
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/sphereproto.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ enum XCMD_TYPE // XCMD_* messages are unique in both directions.
XCMD_MailMsg = 0xbb,
XCMD_Season = 0xbc,
XCMD_ClientVersion = 0xbd,
XCMD_AssistVersion = 0xbe,
XCMD_ExtData = 0xbf,
// 0xC0
XCMD_EffectEx = 0xc0,
Expand Down
1 change: 1 addition & 0 deletions src/network/CPacketManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void PacketManager::registerStandardPackets(void)
registerPacket(XCMD_CharProfile, new PacketProfileReq()); // profile read/write request
registerPacket(XCMD_MailMsg, new PacketMailMessage()); //
registerPacket(XCMD_ClientVersion, new PacketClientVersion()); // client version
registerPacket(XCMD_AssistVersion, new PacketAssistVersion()); // assist version
registerPacket(XCMD_ExtData, new PacketExtendedCommand()); //
registerPacket(XCMD_PromptUNICODE, new PacketPromptResponseUnicode()); // prompt response (unicode)
registerPacket(XCMD_ViewRange, new PacketViewRange()); //
Expand Down
11 changes: 11 additions & 0 deletions src/network/receive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2497,6 +2497,17 @@ bool PacketClientVersion::onReceive(CNetState* net)
return true;
}

/***************************************************************************
*
*
* Packet 0xBD : PacketAssistVersion assist version
*
*
***************************************************************************/
PacketAssistVersion::PacketAssistVersion() : Packet(0)
{
}
PacketAssistVersion::~PacketAssistVersion() = default;

/***************************************************************************
*
Expand Down
14 changes: 14 additions & 0 deletions src/network/receive.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,20 @@ class PacketClientVersion : public Packet
virtual bool onReceive(CNetState* net);
};

/***************************************************************************
*
*
* Packet 0xBE : PacketAssistVersion assist version
*
*
***************************************************************************/
class PacketAssistVersion : public Packet
{
public:
PacketAssistVersion();
virtual ~PacketAssistVersion();
};

/***************************************************************************
*
*
Expand Down

0 comments on commit f051889

Please sign in to comment.