TrinityCore
Loading...
Searching...
No Matches
PlayerNameMapHolder Namespace Reference

Typedefs

typedef std::unordered_map< std::string, Player * > MapType
 

Functions

void Insert (Player *p)
 
void Remove (Player *p)
 
Player * Find (std::string_view name)
 

Variables

static MapType PlayerNameMap
 

Typedef Documentation

◆ MapType

typedef std::unordered_map<std::string, Player*> PlayerNameMapHolder::MapType

Definition at line 86 of file ObjectAccessor.cpp.

Function Documentation

◆ Find()

Player * PlayerNameMapHolder::Find ( std::string_view  name)

Definition at line 99 of file ObjectAccessor.cpp.

References Find(), normalizePlayerName(), and PlayerNameMap.

Referenced by Find(), and ObjectAccessor::FindConnectedPlayerByName().

◆ Insert()

void PlayerNameMapHolder::Insert ( Player *  p)

Definition at line 89 of file ObjectAccessor.cpp.

References WorldObject::GetName(), Insert(), and PlayerNameMap.

Referenced by ObjectAccessor::AddObject(), and Insert().

◆ Remove()

void PlayerNameMapHolder::Remove ( Player *  p)

Definition at line 94 of file ObjectAccessor.cpp.

References WorldObject::GetName(), PlayerNameMap, and Remove().

Referenced by Remove(), and ObjectAccessor::RemoveObject().

Variable Documentation

◆ PlayerNameMap

MapType PlayerNameMapHolder::PlayerNameMap
static

Definition at line 87 of file ObjectAccessor.cpp.

Referenced by Find(), Insert(), and Remove().