Class OnlinePlayerCache

Class Documentation

class game::environment::OnlinePlayerCache

Public Functions

void Add(std::string playerName, std::weak_ptr<Player> player)
void Remove(std::string player)
bool IsOnline(std::string name)
std::weak_ptr<Player> Get(std::string name)

Protected Attributes

std::unordered_map<std::string, std::weak_ptr<Player>> _onlinePlayers