C# Class Pokemon3D.Scripting.ScriptContext

Adds various context elements to a ScriptProcessor class instance.
Mostrar archivo Open project: nilllzz/Pokemon3D Class Usage Examples

Private Properties

Property Type Description
AddAPIUsing void
AddCallback void
AddPrototype void
AddVariable void
AddVariable void
AddVariable void
CreateInstance Pokemon3D.Scripting.Types.SObject
CreateInstance Pokemon3D.Scripting.Types.SObject
CreateInstance Pokemon3D.Scripting.Types.SObject
GetAPIUsing Pokemon3D.Scripting.Types.SAPIUsing
GetCallback System.Delegate
GetPrototype Pokemon3D.Scripting.Types.Prototypes.Prototype
GetVariable Pokemon3D.Scripting.Types.SVariable
HasCallback bool
Initialize void
IsAPIUsing bool
IsPrototype bool
IsVariable bool
ScriptContext Pokemon3D.Scripting.Adapters

Private Methods

Method Description
AddAPIUsing ( SAPIUsing apiUsing ) : void
AddCallback ( CallbackType callbackType, Delegate callback ) : void
AddPrototype ( Prototype prototype ) : void
AddVariable ( SVariable variable ) : void

Adds a variable to the context.

AddVariable ( string identifier, SObject data ) : void

Adds a variable to the context.

AddVariable ( string identifier, SObject data, bool isReadOnly ) : void

Adds a variable to the context and sets the readonly property.

CreateInstance ( Prototype prototype, SObject parameters ) : SObject

Creates an instance of the given prototype.

CreateInstance ( string exp ) : SObject

Creates an instance from a "new" operator.

CreateInstance ( string prototypeName, SObject parameters ) : SObject

Creates an instance with the given prototype name.

GetAPIUsing ( string identifier ) : SAPIUsing
GetCallback ( CallbackType callbackType ) : Delegate
GetPrototype ( string identifier ) : Prototype
GetVariable ( string identifier ) : SVariable
HasCallback ( CallbackType callbackType ) : bool
Initialize ( ) : void
IsAPIUsing ( string identifier ) : bool
IsPrototype ( string identifier ) : bool
IsVariable ( string identifier ) : bool

Returns if this context has a variable with a given identifier defined.

ScriptContext ( ScriptProcessor processor, ScriptContext parent ) : Pokemon3D.Scripting.Adapters