summaryrefslogtreecommitdiff
path: root/src/actormanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-03 18:39:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-03 18:39:14 +0300
commit0928d201335e8c247a44a1406cfbee3921ee7901 (patch)
tree06e5d2acf36921f368ae445ba1eac8e351181f18 /src/actormanager.h
parent74397044b572c323f9c6bbc6338c17ce743ee3af (diff)
downloadplus-0928d201335e8c247a44a1406cfbee3921ee7901.tar.gz
plus-0928d201335e8c247a44a1406cfbee3921ee7901.tar.bz2
plus-0928d201335e8c247a44a1406cfbee3921ee7901.tar.xz
plus-0928d201335e8c247a44a1406cfbee3921ee7901.zip
Add option for saving mapping between account id and nicks.
This information stored in separate files.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r--src/actormanager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/actormanager.h b/src/actormanager.h
index 536c70b63..6e9020d20 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -56,6 +56,8 @@ typedef std::set<ActorSprite*> ActorSprites;
typedef ActorSprites::iterator ActorSpritesIterator;
typedef ActorSprites::const_iterator ActorSpritesConstIterator;
+typedef std::map<BeingId, std::set<std::string> > IdNameMapping;
+
class ActorManager final: public ConfigListener
{
public:
@@ -354,6 +356,9 @@ class ActorManager final: public ConfigListener
void updateBadges();
+ void updateNameId(const std::string &name,
+ const BeingId beingId);
+
size_t size() const
{ return mActors.size(); }
@@ -389,6 +394,7 @@ class ActorManager final: public ConfigListener
ActorSprites mActors;
ActorSprites mDeleteActors;
+ IdNameMapping mIdName;
std::set<BeingId> mBlockedBeings;
#ifdef EATHENA_SUPPORT
std::map<int32_t, std::string> mChars;
@@ -403,6 +409,7 @@ class ActorManager final: public ConfigListener
bool mCycleMonsters;
bool mCycleNPC;
bool mExtMouseTargeting;
+ bool mEnableIdCollecting;
#define defVarsP(mob) \
std::list<std::string> mPriority##mob;\