Decompile 8 functions in Source/Contents/GuildInfo.cpp, Source/Contents/GuildInfo.h
Batch #3450 by Yommy: 2 byte-identical, 6 confirmed by peer review. - fn_18031 GuildInfo::ClearUnknown0114: byte-identical - fn_18032 GuildInfo::ClearMembers: logic confirmed by peer review - fn_18033 GuildInfo::RemoveUnknown0114: logic confirmed by peer review - fn_18034 GuildInfo::RemoveRelatedGuild: logic confirmed by peer review - fn_18035 GuildInfo::GetMemberAccountId: logic confirmed by peer review - fn_18036 GuildInfo::GetUnknown0114: logic confirmed by peer review - fn_18037 GuildInfo::CountRelatedGuilds: logic confirmed by peer review - fn_18038 GuildInfo::GetUnknown0114Count: byte-identical Peer-reviewed-by: superintelligence Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
6fc4b05f60
commit
248e128ae7
2 changed files with 88 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "Contents/Actors/GameActor.h"
|
||||
#include "Contents/Actors/Pc.h"
|
||||
#include "Contents/World/World.h"
|
||||
#include "UI/Window/UIWindowMgr.h"
|
||||
|
||||
// OFFSET: 0x00AE41C0
|
||||
// FUNCTION: fn_18030
|
||||
|
|
@ -17,6 +18,76 @@ void GuildInfo::ChangeMemberPosition(int aid, int cid, int position) {
|
|||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE4230
|
||||
// FUNCTION: fn_18031
|
||||
void GuildInfo::ClearUnknown0114() {
|
||||
this->unknown_0114.clear();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE4240
|
||||
// FUNCTION: fn_18032
|
||||
void GuildInfo::ClearMembers() {
|
||||
this->m_members.clear();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE4270
|
||||
// FUNCTION: fn_18033
|
||||
void GuildInfo::RemoveUnknown0114(int value) {
|
||||
for (auto it = this->unknown_0114.begin(); it != this->unknown_0114.end(); ++it) {
|
||||
if (*it == value) {
|
||||
this->unknown_0114.erase(it);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE42C0
|
||||
// FUNCTION: fn_18034
|
||||
void GuildInfo::RemoveRelatedGuild(int unknown_0000, int unknown_0004) {
|
||||
for (auto it = this->unknown_00E4.begin(); it != this->unknown_00E4.end(); ++it) {
|
||||
if (it->unknown_0000 == unknown_0000 && it->unknown_0004 == unknown_0004) {
|
||||
this->unknown_00E4.erase(it);
|
||||
g_windowMgr.RefreshGuildWindows();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE4380
|
||||
// FUNCTION: fn_18035
|
||||
int GuildInfo::GetMemberAccountId(const char* name) {
|
||||
for (auto it = this->m_members.begin(); it != this->m_members.end(); ++it) {
|
||||
if (it->name == name) {
|
||||
return it->accountId;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE43E0
|
||||
// FUNCTION: fn_18036
|
||||
int GuildInfo::GetUnknown0114(int index) {
|
||||
return this->unknown_0114[index];
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE4690
|
||||
// FUNCTION: fn_18037
|
||||
int GuildInfo::CountRelatedGuilds(int unknown_0004) {
|
||||
int count = 0;
|
||||
for (auto it = this->unknown_00E4.begin(); it != this->unknown_00E4.end(); ++it) {
|
||||
if (it->unknown_0004 == unknown_0004) {
|
||||
++count;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE46C0
|
||||
// FUNCTION: fn_18038
|
||||
int GuildInfo::GetUnknown0114Count() {
|
||||
return static_cast<int>(this->unknown_0114.size());
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE4740
|
||||
// FUNCTION: fn_18039
|
||||
void GuildInfo::Init() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue