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
This commit is contained in:
parent
6f8a35191a
commit
7541fbec29
4 changed files with 134 additions and 0 deletions
22
Source/Contents/GuildEmblemState.cpp
Normal file
22
Source/Contents/GuildEmblemState.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue