class TutorialModDialogsBlocks { constructor (runtime){ /** * The runtime instantiating this block package. * @type {Runtime} */ this.runtime = runtime; } /** * Retrieve the block primitives implemented by this package. * @return {object.} Mapping of opcode to Function. */ getPrimitives () { return { dialogs_alert: this.alertBlock }; } alertBlock(args, util) { alert(args.MESSAGE); } } module.exports = TutorialModDialogsBlocks;