mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-11 13:34:00 -04:00
Merge pull request #963 from towerofnix/foreach-vm
Implement for-each block
This commit is contained in:
commit
51306e3492
3 changed files with 75 additions and 0 deletions
src/serialization
|
@ -768,6 +768,24 @@ const specMap = {
|
|||
}
|
||||
]
|
||||
},
|
||||
'doForLoop': {
|
||||
opcode: 'control_for_each',
|
||||
argMap: [
|
||||
{
|
||||
type: 'field',
|
||||
fieldName: 'VARIABLE'
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
inputOp: 'text',
|
||||
inputName: 'VALUE'
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
inputName: 'SUBSTACK'
|
||||
}
|
||||
]
|
||||
},
|
||||
'stopScripts': {
|
||||
opcode: 'control_stop',
|
||||
argMap: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue