Source: ext/logic_nodes.js

"use strict";

/**
 * API methods to control logic editor.
 * @module logic_nodes
 */
b4w.module["logic_nodes"] = function(exports, require) {

var m_logn = require("__logic_nodes");

/**
 * Register custom callback, used in logic editor.
 * @method module:logic_nodes.append_custom_callback
 * @param {String} cb_id Callback ID.
 * @param {Function} cb Callback function.
 */
exports.append_custom_callback = function(cb_id, cb) {
    m_logn.append_custom_cb(cb_id, cb);
}

/**
 * Remove registered custom callback by its ID.
 * @method module:logic_nodes.remove_custom_callback
 * @param {String} cb_id Callback ID.
 */
exports.remove_custom_callback = function(cb_id) {
    m_logn.remove_custom_cb(cb_id);
}

/**
 * Activate Entry Point node, used in logic editor.
 * @method module:logic_nodes.run_entrypoint
 * @param {String} scene_name Scene name.
 * @param {String} ep_name Entry Point node name.
 */
exports.run_entrypoint = function(scene_name, ep_name) {
    m_logn.run_ep(scene_name, ep_name);
}

}