mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 04:28:00 +00:00
Add call api get_client_list
This commit is contained in:
@@ -18,11 +18,14 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "clientlist.h"
|
||||
#include "cliententry.h"
|
||||
#include "eqemu_api_world_data_service.h"
|
||||
#include "zoneserver.h"
|
||||
#include "zonelist.h"
|
||||
|
||||
extern ZSList zoneserver_list;
|
||||
extern ZSList zoneserver_list;
|
||||
extern ClientList client_list;
|
||||
|
||||
void callGetZoneList(Json::Value &response)
|
||||
{
|
||||
@@ -53,6 +56,10 @@ void callGetZoneList(Json::Value &response)
|
||||
}
|
||||
}
|
||||
|
||||
void callGetClientList(Json::Value &response)
|
||||
{
|
||||
client_list.GetClientList(response);
|
||||
}
|
||||
|
||||
void EQEmuApiWorldDataService::get(Json::Value &response, const std::vector<std::string> &args)
|
||||
{
|
||||
@@ -61,4 +68,7 @@ void EQEmuApiWorldDataService::get(Json::Value &response, const std::vector<std:
|
||||
if (method == "get_zone_list") {
|
||||
callGetZoneList(response);
|
||||
}
|
||||
if (method == "get_client_list") {
|
||||
callGetClientList(response);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user