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.
26 lines
612 B
C++
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;
|
|
}
|