mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add player names display
This commit is contained in:
parent
acc4d2540d
commit
65e5063326
10 changed files with 80 additions and 16 deletions
|
|
@ -11,7 +11,7 @@ void Players::addPlayer(std::unique_ptr<Player> player) {
|
|||
players[player->getId()] = std::move(player);
|
||||
}
|
||||
|
||||
Player* Players::getPlayer(int64_t id) const {
|
||||
Player* Players::get(int64_t id) const {
|
||||
const auto& found = players.find(id);
|
||||
if (found == players.end()) {
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue