1
0

removed GetUsernames() from World

This commit is contained in:
Vincent 2014-11-29 15:46:31 -08:00
parent 72797b14fe
commit 20dcceb7e6
2 changed files with 0 additions and 18 deletions

View File

@ -3667,18 +3667,3 @@ void cWorld::cChunkGeneratorCallbacks::CallHookChunkGenerated (cChunkDesc & a_Ch
std::list<AString> cWorld::GetUsernames()
{
std::list<AString> usernames;
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
AString username = (*itr)->GetName();
usernames.insert(usernames.begin(),username);
}
return usernames;
}

View File

@ -807,9 +807,6 @@ public:
This function allows nesting and task-concurrency (multiple separate tasks can request ticking and as long
as at least one requests is active the chunk will be ticked). */
void SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicked = true); // tolua_export
/** Get the usernames from the World. */
std::list<AString> GetUsernames(void);
private: