Méthode | Description | |
---|---|---|
AddPrototype ( ScriptProcessor processor, |
Creates a Prototype from a .net Type and adds it to the context.
|
|
AddVariable ( ScriptProcessor processor, string identifier, |
Adds a new variable or overwrites one with the same name.
|
|
AddVariable ( ScriptProcessor processor, string identifier, object data ) : void |
Adds a new variable or overwrites one with the same name.
|
|
GetVariable ( ScriptProcessor processor, string identifier ) : |
Returns the content of a variable, or Undefined, if the variable does not exist.
|
|
GetVariableTranslated ( ScriptProcessor processor, string identifier ) : object |
Returns the translated content of a variable.
|
|
HasVariable ( ScriptProcessor processor, string identifier ) : bool |
Returns if the context has a specific variable.
|
|
SetCallbackExecuteMethod ( ScriptProcessor processor, DExecuteMethod callback ) : void |
Sets the callback for executing a method of an API class.
|
|
SetCallbackGetMember ( ScriptProcessor processor, DGetMember callback ) : void |
Sets the callback for getting a member of an API class.
|
|
SetCallbackHasMember ( ScriptProcessor processor, DHasMember callback ) : void |
Sets the callback for checking if an API class has a member.
|
|
SetCallbackScriptPipeline ( ScriptProcessor processor, DScriptPipeline callback ) : void |
Sets the callback for getting the content of a script file.
|
|
SetCallbackSetMember ( ScriptProcessor processor, DSetMember callback ) : void |
Sets the callback for setting a member of an API class.
|
|
ThrownRuntimeError ( ScriptProcessor processor ) : bool |
Returns if the script processor has thrown a script runtime exception.
|
public static AddPrototype ( ScriptProcessor processor, |
||
processor | ScriptProcessor | Reference to a processor instance. |
t | The type from which to create the prototype. The name of the type will be used for the Prototype's name. | |
Résultat | void |
public static AddVariable ( ScriptProcessor processor, string identifier, |
||
processor | ScriptProcessor | |
identifier | string | |
data | ||
Résultat | void |
public static AddVariable ( ScriptProcessor processor, string identifier, object data ) : void | ||
processor | ScriptProcessor | |
identifier | string | |
data | object | |
Résultat | void |
public static GetVariable ( ScriptProcessor processor, string identifier ) : |
||
processor | ScriptProcessor | |
identifier | string | |
Résultat |
public static GetVariableTranslated ( ScriptProcessor processor, string identifier ) : object | ||
processor | ScriptProcessor | |
identifier | string | |
Résultat | object |
public static HasVariable ( ScriptProcessor processor, string identifier ) : bool | ||
processor | ScriptProcessor | |
identifier | string | |
Résultat | bool |
public static SetCallbackExecuteMethod ( ScriptProcessor processor, DExecuteMethod callback ) : void | ||
processor | ScriptProcessor | |
callback | DExecuteMethod | |
Résultat | void |
public static SetCallbackGetMember ( ScriptProcessor processor, DGetMember callback ) : void | ||
processor | ScriptProcessor | |
callback | DGetMember | |
Résultat | void |
public static SetCallbackHasMember ( ScriptProcessor processor, DHasMember callback ) : void | ||
processor | ScriptProcessor | |
callback | DHasMember | |
Résultat | void |
public static SetCallbackScriptPipeline ( ScriptProcessor processor, DScriptPipeline callback ) : void | ||
processor | ScriptProcessor | |
callback | DScriptPipeline | |
Résultat | void |
public static SetCallbackSetMember ( ScriptProcessor processor, DSetMember callback ) : void | ||
processor | ScriptProcessor | |
callback | DSetMember | |
Résultat | void |
public static ThrownRuntimeError ( ScriptProcessor processor ) : bool | ||
processor | ScriptProcessor | |
Résultat | bool |