diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-04 00:13:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-04 00:13:47 +0300 |
commit | 8d969b8b7a4178d6a72795a9446ddc7f8e398a00 (patch) | |
tree | bce7f22bf9477cad46488235a497a50a69ce8d08 /src/actormanager.h | |
parent | 0d7d3fd2888cf59ed41bc16c3305582ca64e7596 (diff) | |
download | plus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.tar.gz plus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.tar.bz2 plus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.tar.xz plus-8d969b8b7a4178d6a72795a9446ddc7f8e398a00.zip |
Improve search being by id.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r-- | src/actormanager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actormanager.h b/src/actormanager.h index 2738181f7..59f8552d2 100644 --- a/src/actormanager.h +++ b/src/actormanager.h @@ -55,6 +55,9 @@ struct ChatObject; typedef std::set<ActorSprite*> ActorSprites; typedef ActorSprites::iterator ActorSpritesIterator; typedef ActorSprites::const_iterator ActorSpritesConstIterator; +typedef std::map<BeingId, ActorSprite*> ActorSpritesMap; +typedef ActorSpritesMap::iterator ActorSpritesMapIterator; +typedef ActorSpritesMap::const_iterator ActorSpritesMapConstIterator; typedef std::map<BeingId, std::set<std::string> > IdNameMapping; @@ -396,6 +399,7 @@ class ActorManager final: public ConfigListener ActorSprites mActors; ActorSprites mDeleteActors; + ActorSpritesMap mActorsIdMap; IdNameMapping mIdName; std::set<BeingId> mBlockedBeings; #ifdef EATHENA_SUPPORT |