summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 6b27e3205..d851864a3 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -2062,6 +2062,16 @@ void ActorManager::updateSeenPlayers(const std::set<std::string>
}
}
+std::string ActorManager::getSeenPlayerById(const BeingId id)
+{
+ if (!mEnableIdCollecting)
+ return std::string();
+
+ if (mIdName.find(id) != mIdName.end() && !mIdName[id].empty())
+ return *(mIdName[id].begin());
+ return std::string();
+}
+
#ifdef EATHENA_SUPPORT
void ActorManager::removeRoom(const int chatId)
{