rodecomp/Source/Contents/GuildEmblemState.cpp
ragnarok-clanker 7541fbec29 Decompile 6 functions in Source/Contents/GuildMgr.cpp, Source/Contents/GuildMgr.h, ...
Batch #889 by ragnarok-clanker: 0 byte-identical, 6 confirmed by peer review.

- fn_05147 CGuild::CGuild: logic confirmed by peer review
- fn_05148 CGuild::~CGuild: logic confirmed by peer review
- fn_05172 CGuildMgr::Create: logic confirmed by peer review
- fn_05173 CGuildMgr::Destroy: logic confirmed by peer review
- fn_05175 CGuildMgr::GetEmblemVersion: logic confirmed by peer review
- fn_05181 CGuildMgr::SetEmblemVersion: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/GuildMgr.cpp, Source/Contents/GuildEmblemState.cpp
2026-10-26 21:46:02 +00:00

22 lines
524 B
C++

#include "Contents/GuildMgr.h"
// FUNCTION: fn_05147
CGuild::CGuild() : m_emblemVersion(0) {
}
// FUNCTION: fn_05148
CGuild::~CGuild() = default;
// 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;
}
// FUNCTION: fn_05181
void CGuildMgr::SetEmblemVersion(std::uint32_t guildId, int version) {
this->m_guilds[guildId].m_emblemVersion = version;
}