Codechange: keep how we convert string <-> JSON private (#11269)

This commit is contained in:
Patric Stout
2023-09-08 19:03:10 +02:00
committed by GitHub
parent d725fa14a2
commit 00f13282a9
5 changed files with 156 additions and 162 deletions

View File

@@ -11,7 +11,6 @@
#define SCRIPT_ADMIN_HPP
#include "script_object.hpp"
#include <nlohmann/json.hpp>
/**
* Class that handles communication with the AdminPort.
@@ -36,17 +35,6 @@ public:
*/
static bool Send(void *table);
#endif /* DOXYGEN_API */
protected:
/**
* Convert a Squirrel structure into a JSON object.
* @param json The resulting JSON object.
* @param vm The VM to operate on.
* @param index The index we are currently working for.
* @param depth The current depth in the squirrel struct.
* @return True iff the conversion was successful.
*/
static bool MakeJSON(nlohmann::json &data, HSQUIRRELVM vm, SQInteger index, int depth = 0);
};
#endif /* SCRIPT_ADMIN_HPP */