Procedure blocks ()

This commit is contained in:
Tim Mickel 2016-10-13 13:11:26 -04:00 committed by GitHub
parent c9c2cc560e
commit 8c654bbe60
7 changed files with 144 additions and 16 deletions
src/engine

View file

@ -164,6 +164,15 @@ var execute = function (sequencer, thread) {
startProcedure: function (procedureName) {
sequencer.stepToProcedure(thread, procedureName);
},
getProcedureParamNames: function (procedureName) {
return thread.target.blocks.getProcedureParamNames(procedureName);
},
pushParam: function (paramName, paramValue) {
thread.pushParam(paramName, paramValue);
},
getParam: function (paramName) {
return thread.getParam(paramName);
},
startHats: function(requestedHat, opt_matchFields, opt_target) {
return (
runtime.startHats(requestedHat, opt_matchFields, opt_target)