diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-03-25 19:13:25 +0100 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-04-05 02:31:58 +0200 |
commit | b0e68060777dfb7daefc81c169e1ed4d95c4a2d6 (patch) | |
tree | 7ea5797cc99b7dfb3c989669c3f97d88e6628d59 /src/environment.h | |
parent | 76b86c036876faabe49e274e9ada4fb9d8bd6aea (diff) | |
download | minetest-b0e68060777dfb7daefc81c169e1ed4d95c4a2d6.tar.gz minetest-b0e68060777dfb7daefc81c169e1ed4d95c4a2d6.tar.bz2 minetest-b0e68060777dfb7daefc81c169e1ed4d95c4a2d6.zip |
Fix nick completion
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h index 02301e5d3..7f73a5461 100644 --- a/src/environment.h +++ b/src/environment.h @@ -470,6 +470,13 @@ public: ClientEnvEvent getClientEvent(); std::vector<core::vector2d<int> > attachment_list; // X is child ID, Y is parent ID + + std::list<std::string> getPlayerNames() + { return m_player_names; } + void addPlayerName(std::string name) + { m_player_names.push_back(name); } + void removePlayerName(std::string name) + { m_player_names.remove(name); } private: ClientMap *m_map; @@ -482,6 +489,7 @@ private: Queue<ClientEnvEvent> m_client_event_queue; IntervalLimiter m_active_object_light_update_interval; IntervalLimiter m_lava_hurt_interval; + std::list<std::string> m_player_names; }; #endif |