Class: QinCore

QinCore

a class handle all the core function of the qin.js

new QinCore (props)

create a qin.js engine core instance
Name Type Description
props Object QinCorePropsType
Name Type Description
debugging boolean set core running as debug mode if it's true

Methods

desertify (name)Promise.<void> async

create/load sandbox by name from local or browser's indexDB
Name Type Description
name string name of the sandbox
Returns:
Type Description
Promise.<void>

setSandBox (sandbox)

set an existing sandbox instance to handle by core
Name Type Description
sandbox QinSandbox

start ()Promise.<void> async

start sandbox
Returns:
Type Description
Promise.<void>

stop ()

stop sandbox