InterpreterContext Class
Describes an interpreter-context which holds information about the interpreter's owner and also unique ID used for accessing correct local variables.
Methods
onDataBundleRestore.
(
-
Object
-
gs.ObjectCodecContext
Called if this object instance is restored from a data-bundle. It can be used re-assign event-handler, anonymous functions, etc.
Parameters:
-
Object
Objectdata - The data-bundle
-
gs.ObjectCodecContext
Objectcontext - The codec-context.
set
(
-
id
-
owner
Sets the context's data.
Parameters:
-
id
Number | String- A unique ID
-
owner
Object- The owner of the interpreter
Properties
id
Number | String
A unique numeric or textual ID used for accessing correct local variables.
owner
Object
The owner of the interpreter (e.g. current scene, etc.).