Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

ScriptEventAdminPort Class Reference

Event Admin Port, indicating the admin port is sending you information. More...

#include <script_event_types.hpp>

Inheritance diagram for ScriptEventAdminPort:
ScriptEvent ScriptObject SimpleCountedObject

Public Member Functions

 ScriptEventAdminPort (const char *json)
SQInteger GetObject (HSQUIRRELVM vm)
 Get the information that was sent to you back as Squirrel object.

Static Public Member Functions

static ScriptEventAdminPortConvert (ScriptEvent *instance)
 Convert an ScriptEvent to the real instance.

Private Member Functions

char * ReadTable (HSQUIRRELVM vm, char *p)
 Read a table from a JSON string.
char * ReadValue (HSQUIRRELVM vm, char *p)
 Read a value from a JSON string.
char * ReadString (HSQUIRRELVM vm, char *p)
 Read a string from a JSON string.

Private Attributes

char * json
 The JSON string.

Detailed Description

Event Admin Port, indicating the admin port is sending you information.

game

Definition at line 837 of file script_event_types.hpp.


Constructor & Destructor Documentation

ScriptEventAdminPort::ScriptEventAdminPort ( const char *  json  )  [inline]
Parameters:
json The JSON string which got sent.

Definition at line 842 of file script_event_types.hpp.


Member Function Documentation

static ScriptEventAdminPort* ScriptEventAdminPort::Convert ( ScriptEvent instance  )  [inline, static]

Convert an ScriptEvent to the real instance.

Parameters:
instance The instance to convert.
Returns:
The converted instance.

Definition at line 857 of file script_event_types.hpp.

char * ScriptEventAdminPort::ReadString ( HSQUIRRELVM  vm,
char *  p 
) [private]

Read a string from a JSON string.

Parameters:
vm The VM used.
p The (part of the) JSON string reading.

Definition at line 139 of file script_event_types.cpp.

Referenced by ReadTable(), and ReadValue().

char * ScriptEventAdminPort::ReadTable ( HSQUIRRELVM  vm,
char *  p 
) [private]

Read a table from a JSON string.

Parameters:
vm The VM used.
p The (part of the) JSON string reading.

Definition at line 170 of file script_event_types.cpp.

References ReadString(), and ReadValue().

Referenced by GetObject(), and ReadValue().

char * ScriptEventAdminPort::ReadValue ( HSQUIRRELVM  vm,
char *  p 
) [private]

Read a value from a JSON string.

Parameters:
vm The VM used.
p The (part of the) JSON string reading.

Definition at line 213 of file script_event_types.cpp.

References ReadString(), and ReadTable().

Referenced by ReadTable().


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