From c23f0eaefba033d4a1208f0ab922505dacfc70b2 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Wed, 20 Mar 2019 03:19:47 -0500 Subject: [PATCH] Add api get_opcode_list --- zone/eqemu_api_zone_data_service.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zone/eqemu_api_zone_data_service.cpp b/zone/eqemu_api_zone_data_service.cpp index b1fd2a2d2..7dff0db2a 100644 --- a/zone/eqemu_api_zone_data_service.cpp +++ b/zone/eqemu_api_zone_data_service.cpp @@ -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 &args) { std::string method = args[0]; @@ -734,6 +744,9 @@ void EQEmuApiZoneDataService::get(Json::Value &response, const std::vector