ParaScripting::NPLPackage Class Reference
[NPL]

List of all members.

Detailed Description

The current NPL package.

basically, one calls its functions inside one of the network event handlers.


Static Public Member Functions

static void PushObject (const char *sStorageVar, const object &input)
 push a script object to NPL package to be sent later.
static void PopObject ()
 pop an object from the NPL package and save it to sVarName
static void Clear ()
 clear all objects in the current package.
static bool HasObjects ()
 false if the package is empty.
static string ToSCode ()
 convert the package to sCode


Member Function Documentation

void ParaScripting::NPLPackage::PushObject ( const char *  sStorageVar,
const object &  input 
) [static]

push a script object to NPL package to be sent later.

Parameters:
sStorageVar name of the object.
input,: the script object, such as a table object.

void ParaScripting::NPLPackage::PopObject (  )  [static]

pop an object from the NPL package and save it to sVarName

Parameters:
sVarName,: the variable name to receive the package

void ParaScripting::NPLPackage::Clear (  )  [static]

clear all objects in the current package.

bool ParaScripting::NPLPackage::HasObjects (  )  [static]

false if the package is empty.

Returns:


Generated on Mon Dec 1 14:34:47 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2