Batch #17281 by ragnarok-clanker: no function's compiled code changes; checked with 17 compiled unit(s), including every includer of Source/Linkage/Source/Client/Browser/BrowserFactory.cpp.h, Source/Linkage/Source/Client/Browser/BrowserRegistry.cpp.h, Source/Linkage/Source/Client/Session/Session.cpp.h, Source/Linkage/Source/Contents/Actors/ActorNameCache.cpp.h, Source/Linkage/Source/Contents/Actors/ActorNameDirectory.cpp.h, Source/Linkage/Source/Contents/Actors/ActorNameRequests.cpp.h, Source/Linkage/Source/Contents/Actors/RenderObject.cpp.h, Source/Linkage/Source/Contents/AdventureGuide/AdventureGuideMgr.cpp.h, Source/Linkage/Source/Contents/Async/AsyncWorkRecycleObjectPoolMgr.cpp.h, Source/Linkage/Source/Contents/Items/ClientItemLists.cpp.h, Source/Linkage/Source/Contents/Messenger/ClientMessenger.cpp.h, Source/Linkage/Source/Contents/Skills/PlayerSkillBundle.cpp.h, Source/Linkage/Source/UI/AdventureGuide/UIAdventureGuide.cpp.h, Source/Linkage/Source/UI/Quest/UIRenewQuestUI.cpp.h, Source/Linkage/Source/UI/Quest/UIRenewQuestWnd.cpp.h, Source/Linkage/Source/UI/Window/UIWindowMgr.cpp.h, Source/Linkage/Source/UI/Window/WindowMgrState.cpp.h.
25 lines
698 B
C++
25 lines
698 B
C++
#include "Contents/Actors/ActorNameCard.h"
|
|
|
|
#include <algorithm>
|
|
|
|
// OFFSET: 0x005BF870
|
|
// FUNCTION: fn_03497
|
|
std::size_t CActorNameCardHolder::Erase(std::uint32_t id) {
|
|
return this->cards.erase(id);
|
|
}
|
|
|
|
// OFFSET: 0x005BF890
|
|
// FUNCTION: fn_03498
|
|
std::uint32_t CActorNameCardHolder::FindId(std::string name) {
|
|
auto it = std::find_if(this->cards.begin(), this->cards.end(), [name](std::pair<const std::uint32_t, CActorNameCard> entry) {
|
|
return entry.second.name == name;
|
|
});
|
|
|
|
return it != this->cards.end() ? it->first : 0;
|
|
}
|
|
|
|
// OFFSET: 0x005C0190
|
|
// FUNCTION: fn_03503
|
|
bool CActorNameCardHolder::Contains(std::uint32_t id) const {
|
|
return this->cards.end() != this->cards.find(id);
|
|
}
|