adopt static method

LuauState adopt(
  1. int vmPointer,
  2. Factory riveFactory
)

Adopt a ScriptingVM created by C++ requestVM. Replaces the C++ scripting context with one compatible with Dart (factory + console callback).

Implementation

static LuauState adopt(int vmPointer, Factory riveFactory) {
  return adoptLuauState(vmPointer, riveFactory);
}