API Docs for:
Show:

InterpreterContext Class

Module: gs

Describes an interpreter-context which holds information about the interpreter's owner and also unique ID used for accessing correct local variables.

Item Index

Properties

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 Object

    data - The data-bundle

  • gs.ObjectCodecContext Object

    context - 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.).