mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-28 06:59:45 -04:00
Procedure blocks (#264)
This commit is contained in:
parent
c9c2cc560e
commit
8c654bbe60
7 changed files with 144 additions and 16 deletions
src/engine
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue