Decompile fn_24171 (MessengerMember::Serialize)
Batch #7905 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_24171 MessengerMember::Serialize: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
e293668961
commit
1460c792ef
3 changed files with 54 additions and 0 deletions
|
|
@ -14,6 +14,9 @@
|
|||
#include "UI/Window/UIWindowMgr.h"
|
||||
#include "Client/Session.h"
|
||||
#include "Contents/RenewQuestMgr.h"
|
||||
#include "Contents/ClientState.h"
|
||||
#include "Contents/Configuration/ServiceOptions.h"
|
||||
#include "Contents/Messenger/MessengerMember.h"
|
||||
|
||||
// GLOBAL: gl_24549
|
||||
int g_replayAnimationScaling = 0;
|
||||
|
|
@ -1102,6 +1105,55 @@ struct ReplayShopFlagRecord {
|
|||
};
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E30A90
|
||||
// FUNCTION: fn_24171
|
||||
std::vector<unsigned char> MessengerMember::Serialize() const {
|
||||
std::vector<unsigned char> records;
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(251, nullptr, 0);
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(253, &this->valid, sizeof(this->valid));
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(254, &this->accountId, sizeof(this->accountId));
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(255, &this->characterId, sizeof(this->characterId));
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(258, &this->leader, sizeof(this->leader));
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(259, &this->offline, sizeof(this->offline));
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(260, &this->color, sizeof(this->color));
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(256, this->name.c_str(), this->name.size());
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(257, this->map.c_str(), this->map.size());
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
{
|
||||
const auto record = BuildReplayTaggedRecord(252, nullptr, 0);
|
||||
records.insert(records.end(), record.begin(), record.end());
|
||||
}
|
||||
return records;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E3E550
|
||||
|
||||
// OFFSET: 0x00E41E60
|
||||
// FUNCTION: fn_24201
|
||||
std::vector<unsigned char> CSession::BuildShopReplayRecords() {
|
||||
|
|
|
|||
|
|
@ -743,6 +743,7 @@ public:
|
|||
std::uint32_t ReadReplayReserved(const std::vector<unsigned char>& data);
|
||||
std::uint32_t ReadReplayEntryQueue(const std::vector<unsigned char>& data);
|
||||
std::vector<unsigned char> BuildShortcutReplayRecords();
|
||||
std::vector<unsigned char> BuildCharacterReplayRecords();
|
||||
std::vector<unsigned char> BuildReservedReplayRecords(); std::vector<unsigned char> BuildShopReplayRecords(); std::vector<unsigned char> BuildExtraReplayRecords(); std::vector<unsigned char> BuildStatsReplayRecords();
|
||||
std::vector<unsigned char> BuildSkillListReplayPacket(short id);
|
||||
void SetHomunculusAutoFeed(bool enabled);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ struct MessengerMember {
|
|||
MessengerMember& operator=(const MessengerMember& other);
|
||||
~MessengerMember();
|
||||
std::uint32_t Deserialize(const std::vector<unsigned char>& data);
|
||||
std::vector<unsigned char> Serialize() const;
|
||||
|
||||
/* 0000 */ std::int32_t valid;
|
||||
/* 0004 */ std::uint32_t accountId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue