Skip to content

Commit

Permalink
Renamed GetAllPlayers() to GetAllPlayerUUIDs()
Browse files Browse the repository at this point in the history
  • Loading branch information
Howaner committed Sep 29, 2014
1 parent 347402d commit ff3a3b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/Bindings/ManualBindings_RankManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ static int tolua_cRankManager_GetAllPermissions(lua_State * L)



/** Binds cRankManager::GetAllPlayers */
static int tolua_cRankManager_GetAllPlayers(lua_State * L)
/** Binds cRankManager::GetAllPlayerUUIDs */
static int tolua_cRankManager_GetAllPlayerUUIDs(lua_State * L)
{
// Function signature:
// cRankManager:GetAllPlayers() -> arraytable of Player UUID's
// cRankManager:GetAllPlayerUUIDs() -> arraytable of Player UUID's

cLuaState S(L);
if (
Expand All @@ -220,7 +220,7 @@ static int tolua_cRankManager_GetAllPlayers(lua_State * L)
}

// Get the player uuid's:
AStringVector Players = cRoot::Get()->GetRankManager().GetAllPlayers();
AStringVector Players = cRoot::Get()->GetRankManager().GetAllPlayerUUIDs();

// Push the results:
S.Push(Players);
Expand Down Expand Up @@ -1055,7 +1055,7 @@ void ManualBindings::BindRankManager(lua_State * tolua_S)
tolua_function(tolua_S, "ClearPlayerRanks", tolua_cRankManager_ClearPlayerRanks);
tolua_function(tolua_S, "GetAllGroups", tolua_cRankManager_GetAllGroups);
tolua_function(tolua_S, "GetAllPermissions", tolua_cRankManager_GetAllPermissions);
tolua_function(tolua_S, "GetAllPlayers", tolua_cRankManager_GetAllPlayers);
tolua_function(tolua_S, "GetAllPlayerUUIDs", tolua_cRankManager_GetAllPlayerUUIDs);
tolua_function(tolua_S, "GetAllRanks", tolua_cRankManager_GetAllRanks);
tolua_function(tolua_S, "GetDefaultRank", tolua_cRankManager_GetDefaultRank);
tolua_function(tolua_S, "GetGroupPermissions", tolua_cRankManager_GetGroupPermissions);
Expand Down
2 changes: 1 addition & 1 deletion src/RankManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ AStringVector cRankManager::GetRankPermissions(const AString & a_RankName)



AStringVector cRankManager::GetAllPlayers(void)
AStringVector cRankManager::GetAllPlayerUUIDs(void)
{
ASSERT(m_IsInitialized);
cCSLock Lock(m_CS);
Expand Down
2 changes: 1 addition & 1 deletion src/RankManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class cRankManager
AStringVector GetRankPermissions(const AString & a_RankName);

/** Returns the short uuids of all defined players. */
AStringVector GetAllPlayers(void);
AStringVector GetAllPlayerUUIDs(void);

/** Returns the names of all defined ranks. */
AStringVector GetAllRanks(void);
Expand Down

0 comments on commit ff3a3b8

Please sign in to comment.