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:
-
ObjectObjectdata - The data-bundle
-
gs.ObjectCodecContextObjectcontext - The codec-context.
set
(
-
id -
owner
Sets the context's data.
Parameters:
-
idNumber | String- A unique ID
-
ownerObject- 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.).
