rodecomp/Source/Contents/GuildEmblemState.cpp
ragnarok-clanker bf6a44c117 Group Utility units into subsystem folders and require OFFSET provenance
Move Lexicon*, Text (TextTokens, TextEscapes, Base64), Math/RadialGrid, Hash (MD5, XxHash32) and Cipher (Rijndael, XorBytes) into Source/Utility subfolders; update includes, guards, compile.json and CMakeLists.txt. Backfill // OFFSET: above every standalone // FUNCTION: block (89 IDs, addresses from the symbol database) and make it mandatory in CODING_RULES.md and AGENTS.md. Remove the MatchLexicon cast chain.
2026-10-26 23:41:07 +01:00

26 lines
612 B
C++

#include "Contents/GuildMgr.h"
// OFFSET: 0x0065C440
// FUNCTION: fn_05147
CGuild::CGuild() : m_emblemVersion(0) {
}
// OFFSET: 0x0065C450
// FUNCTION: fn_05148
CGuild::~CGuild() = default;
// OFFSET: 0x0065E640
// FUNCTION: fn_05175
int CGuildMgr::GetEmblemVersion(std::uint32_t guildId) const {
const auto it = this->m_guilds.find(guildId);
if (it != this->m_guilds.end()) {
return it->second.m_emblemVersion;
}
return 0;
}
// OFFSET: 0x0065EEA0
// FUNCTION: fn_05181
void CGuildMgr::SetEmblemVersion(std::uint32_t guildId, int version) {
this->m_guilds[guildId].m_emblemVersion = version;
}