Add call api get_client_list

This commit is contained in:
Akkadius
2019-03-10 01:43:07 -06:00
parent ecd6c362a2
commit 374841cba0
3 changed files with 93 additions and 2 deletions
+4
View File
@@ -3,6 +3,7 @@
#include "../common/eq_packet_structs.h"
#include "../common/linked_list.h"
#include "../common/json/json.h"
#include "../common/timer.h"
#include "../common/rulesys.h"
#include "../common/servertalk.h"
@@ -69,6 +70,8 @@ public:
int GetClientCount();
void GetClients(const char *zone_name, std::vector<ClientListEntry *> &into);
void GetClientList(Json::Value &response);
private:
void OnTick(EQ::Timer *t);
inline uint32 GetNextCLEID() { return NextCLEID++; }
@@ -81,6 +84,7 @@ private:
uint32 NextCLEID;
LinkedList<ClientListEntry *> clientlist;
std::unique_ptr<EQ::Timer> m_tick;
};