@turbowarp/types
Preparing search index...
scratch-vm
VM
Blocks
Interface Blocks
interface
Blocks
{
_blocks
:
Record
<
string
,
VM
.
Block
>
;
forceNoGlow
:
boolean
;
runtime
:
Runtime
;
duplicate
()
:
VM
.
Blocks
;
emitProjectChanged
()
:
void
;
getBlock
(
id
:
string
)
:
VM
.
Block
|
undefined
;
getBranch
(
id
:
string
,
branchNum
?:
number
)
:
string
|
null
;
getFields
(
block
:
VM
.
Block
)
:
Record
<
string
,
Field
>
|
null
;
getInputs
(
block
:
VM
.
Block
)
:
Record
<
string
,
Input
>
|
null
;
getMutation
(
block
:
VM
.
Block
,
)
:
ProcedureCallMutation
|
ProcedurePrototypeMutation
|
null
;
getNextBlock
(
id
:
string
)
:
string
|
null
;
getOpcode
(
block
:
VM
.
Block
)
:
string
|
null
;
getProcedureDefinition
(
procedureCode
:
string
)
:
string
|
null
;
getProcedureParamNamesAndIds
(
procedureCode
:
string
)
:
[
string
[]
,
string
[]
]
;
getProcedureParamNamesIdsAndDefaults
(
procedureCode
:
string
,
)
:
[
string
[]
,
string
[]
,
unknown
[]
]
;
getScripts
()
:
string
[]
;
getTopLevelScript
(
id
:
string
)
:
string
|
null
;
resetCache
()
:
void
;
toXML
()
:
string
;
}
Index
Properties
_
blocks
force
No
Glow
runtime
Methods
duplicate
emit
Project
Changed
get
Block
get
Branch
get
Fields
get
Inputs
get
Mutation
get
Next
Block
get
Opcode
get
Procedure
Definition
get
Procedure
Param
Names
And
Ids
get
Procedure
Param
Names
Ids
And
Defaults
get
Scripts
get
Top
Level
Script
reset
Cache
to
XML
Properties
_
blocks
_blocks
:
Record
<
string
,
VM
.
Block
>
force
No
Glow
forceNoGlow
:
boolean
runtime
runtime
:
Runtime
Methods
duplicate
duplicate
()
:
VM
.
Blocks
Returns
VM
.
Blocks
emit
Project
Changed
emitProjectChanged
()
:
void
Returns
void
get
Block
getBlock
(
id
:
string
)
:
VM
.
Block
|
undefined
Parameters
id
:
string
Returns
VM
.
Block
|
undefined
get
Branch
getBranch
(
id
:
string
,
branchNum
?:
number
)
:
string
|
null
Parameters
id
:
string
Optional
branchNum
:
number
Returns
string
|
null
get
Fields
getFields
(
block
:
VM
.
Block
)
:
Record
<
string
,
Field
>
|
null
Parameters
block
:
VM
.
Block
Returns
Record
<
string
,
Field
>
|
null
get
Inputs
getInputs
(
block
:
VM
.
Block
)
:
Record
<
string
,
Input
>
|
null
Parameters
block
:
VM
.
Block
Returns
Record
<
string
,
Input
>
|
null
get
Mutation
getMutation
(
block
:
VM
.
Block
,
)
:
ProcedureCallMutation
|
ProcedurePrototypeMutation
|
null
Parameters
block
:
VM
.
Block
Returns
ProcedureCallMutation
|
ProcedurePrototypeMutation
|
null
get
Next
Block
getNextBlock
(
id
:
string
)
:
string
|
null
Parameters
id
:
string
Returns
string
|
null
get
Opcode
getOpcode
(
block
:
VM
.
Block
)
:
string
|
null
Parameters
block
:
VM
.
Block
Returns
string
|
null
get
Procedure
Definition
getProcedureDefinition
(
procedureCode
:
string
)
:
string
|
null
Parameters
procedureCode
:
string
Returns
string
|
null
get
Procedure
Param
Names
And
Ids
getProcedureParamNamesAndIds
(
procedureCode
:
string
)
:
[
string
[]
,
string
[]
]
Parameters
procedureCode
:
string
Returns
[
string
[]
,
string
[]
]
get
Procedure
Param
Names
Ids
And
Defaults
getProcedureParamNamesIdsAndDefaults
(
procedureCode
:
string
,
)
:
[
string
[]
,
string
[]
,
unknown
[]
]
Parameters
procedureCode
:
string
Returns
[
string
[]
,
string
[]
,
unknown
[]
]
get
Scripts
getScripts
()
:
string
[]
Returns
string
[]
get
Top
Level
Script
getTopLevelScript
(
id
:
string
)
:
string
|
null
Parameters
id
:
string
Returns
string
|
null
reset
Cache
resetCache
()
:
void
Returns
void
to
XML
toXML
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
_
blocks
force
No
Glow
runtime
Methods
duplicate
emit
Project
Changed
get
Block
get
Branch
get
Fields
get
Inputs
get
Mutation
get
Next
Block
get
Opcode
get
Procedure
Definition
get
Procedure
Param
Names
And
Ids
get
Procedure
Param
Names
Ids
And
Defaults
get
Scripts
get
Top
Level
Script
reset
Cache
to
XML
@turbowarp/types
Loading...