Static Public Member Functions | Static Private Member Functions

ScriptAdmin Class Reference

Class that handles communication with the AdminPort. More...

#include <script_admin.hpp>

Inheritance diagram for ScriptAdmin:
ScriptObject SimpleCountedObject

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.

Detailed Description

Class that handles communication with the AdminPort.

game

Definition at line 22 of file script_admin.hpp.


Member Function Documentation

bool ScriptAdmin::MakeJSON ( HSQUIRRELVM  vm,
SQInteger  index,
int  max_depth,
std::string &  data 
) [static, private]

Convert a Squirrel structure into a JSON string.

Parameters:
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().


The documentation for this class was generated from the following files: