Class that handles communication with the AdminPort. More...
#include <script_admin.hpp>
Static Public Member Functions | |
static SQInteger | Send (HSQUIRRELVM vm) |
Internal representation of the Send function. | |
Static Private Member Functions | |
static bool | MakeJSON (HSQUIRRELVM vm, SQInteger index, int max_depth, std::string &data) |
Convert a Squirrel structure into a JSON string. |
Class that handles communication with the AdminPort.
game
Definition at line 22 of file script_admin.hpp.
bool ScriptAdmin::MakeJSON | ( | HSQUIRRELVM | vm, | |
SQInteger | index, | |||
int | max_depth, | |||
std::string & | data | |||
) | [static, private] |
Convert a Squirrel structure into a JSON string.
vm | The VM to operate on. | |
index | The index we are currently working for. | |
max_depth | The maximal depth to follow the squirrel struct. | |
data | The resulting json string. |
Definition at line 19 of file script_admin.cpp.
References ScriptLog::Error().
Referenced by Send().