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 78 of file ObjectAccessor.cpp.

Function Documentation

◆ Find()

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

Definition at line 91 of file ObjectAccessor.cpp.

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

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

◆ Insert()

void PlayerNameMapHolder::Insert ( Player *  p)

Definition at line 81 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 86 of file ObjectAccessor.cpp.

References WorldObject::GetName(), and PlayerNameMap.

Referenced by ObjectAccessor::RemoveObject().

Variable Documentation

◆ PlayerNameMap

MapType PlayerNameMapHolder::PlayerNameMap
static

Definition at line 79 of file ObjectAccessor.cpp.

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