rodecomp/Source/Contents/Emblems/GuildEmblemReqBundle.h
ragnarok-clanker ef79d9382e Decompile fn_05155 (CGuildEmblemReqBundle::Update)
Batch #14011 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_05155 CGuildEmblemReqBundle::Update: logic confirmed by peer review

Peer-reviewed-by: Yommy, aDw, StrawberrysherbetIX
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-07 04:21:01 +00:00

39 lines
1 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_EMBLEMS_GUILDEMBLEMREQBUNDLE_H
#define RAGNAROK_SOURCE_CONTENTS_EMBLEMS_GUILDEMBLEMREQBUNDLE_H
#include <cstdint>
#include <deque>
#include <string>
#include <utility>
class CEmblemDataMgr;
class CConnection;
class CAsyncWorkMgr;
class CGuildEmblemReqBundle {
public:
CGuildEmblemReqBundle();
virtual ~CGuildEmblemReqBundle();
void Add(std::uint32_t guildId, std::uint32_t version);
void Update();
protected:
struct Recent {
/* 0000 */ std::uint32_t guildId;
/* 0004 */ std::uint32_t version;
/* 0008 */ std::uint32_t tick;
Recent(std::uint32_t guildId, std::uint32_t version, std::uint32_t tick) : guildId(guildId), version(version), tick(tick) {}
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(Recent) == 0xC);
#endif
/* 0004 */ std::deque<std::pair<std::uint32_t, std::uint32_t>> m_pending;
/* 0018 */ std::deque<Recent> m_recent;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CGuildEmblemReqBundle) == 44);
#endif
#endif