mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Add api get_opcode_list
This commit is contained in:
parent
7a50ad4c11
commit
c23f0eaefb
@ -719,6 +719,16 @@ void callGetPacketStatistics(Json::Value &response)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void callGetOpcodeList(Json::Value &response)
|
||||
{
|
||||
for (auto i = 0; i < _maxEmuOpcode; ++i) {
|
||||
Json::Value row = OpcodeNames[i];
|
||||
|
||||
response.append(row);
|
||||
}
|
||||
}
|
||||
|
||||
void EQEmuApiZoneDataService::get(Json::Value &response, const std::vector<std::string> &args)
|
||||
{
|
||||
std::string method = args[0];
|
||||
@ -734,6 +744,9 @@ void EQEmuApiZoneDataService::get(Json::Value &response, const std::vector<std::
|
||||
if (method == "get_packet_statistics") {
|
||||
callGetPacketStatistics(response);
|
||||
}
|
||||
if (method == "get_opcode_list") {
|
||||
callGetOpcodeList(response);
|
||||
}
|
||||
|
||||
/**
|
||||
* List detail
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user