@turbowarp/types-tw
Preparing search index...
scratch-blocks
ScratchBlocks
VariableMap
Class VariableMap
Index
Constructors
constructor
Properties
variable
Map_
workspace
Methods
clear
create
Variable
delete
Variable
delete
Variable
By
Id
delete
Variable
Internal_
get
All
Variables
get
Variable
get
Variable
By
Id
get
Variables
Of
Type
get
Variable
Types
get
Variable
Uses
By
Id
rename
Variable
rename
Variable
And
Uses_
rename
Variable
By
Id
rename
Variable
With
Conflict_
Constructors
constructor
new
VariableMap
()
:
VariableMap
Returns
VariableMap
Properties
variable
Map_
variableMap_
:
Record
<
string
,
VariableModel
>
workspace
workspace
:
Workspace
Methods
clear
clear
()
:
void
Returns
void
create
Variable
createVariable
(
name
:
string
,
type
?:
ScratchBlocks
.
VariableType
,
id
?:
string
,
isLocal
?:
boolean
,
isCloud
?:
boolean
,
)
:
VariableModel
Parameters
name
:
string
Optional
type
:
ScratchBlocks
.
VariableType
Optional
id
:
string
Optional
isLocal
:
boolean
Optional
isCloud
:
boolean
Returns
VariableModel
delete
Variable
deleteVariable
(
variable
:
VariableModel
)
:
void
Parameters
variable
:
VariableModel
Returns
void
delete
Variable
By
Id
deleteVariableById
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
delete
Variable
Internal_
deleteVariableInternal_
(
variable
:
VariableModel
,
uses
:
ScratchBlocks
.
Block
[]
,
)
:
void
Parameters
variable
:
VariableModel
uses
:
ScratchBlocks
.
Block
[]
Returns
void
get
All
Variables
getAllVariables
()
:
VariableModel
[]
Returns
VariableModel
[]
get
Variable
getVariable
(
name
:
string
,
type
?:
ScratchBlocks
.
VariableType
,
)
:
VariableModel
|
null
Parameters
name
:
string
Optional
type
:
ScratchBlocks
.
VariableType
Returns
VariableModel
|
null
get
Variable
By
Id
getVariableById
(
id
:
string
)
:
VariableModel
|
null
Parameters
id
:
string
Returns
VariableModel
|
null
get
Variables
Of
Type
getVariablesOfType
(
type
:
ScratchBlocks
.
VariableType
)
:
VariableModel
[]
Parameters
type
:
ScratchBlocks
.
VariableType
Returns
VariableModel
[]
get
Variable
Types
getVariableTypes
()
:
ScratchBlocks
.
VariableType
[]
Returns
ScratchBlocks
.
VariableType
[]
get
Variable
Uses
By
Id
getVariableUsesById
(
id
:
string
)
:
ScratchBlocks
.
Block
[]
Parameters
id
:
string
Returns
ScratchBlocks
.
Block
[]
rename
Variable
renameVariable
(
variable
:
VariableModel
,
newName
:
string
)
:
void
Parameters
variable
:
VariableModel
newName
:
string
Returns
void
rename
Variable
And
Uses_
renameVariableAndUses_
(
variable
:
VariableModel
,
newName
:
string
,
uses
:
ScratchBlocks
.
Block
[]
,
)
:
void
Parameters
variable
:
VariableModel
newName
:
string
uses
:
ScratchBlocks
.
Block
[]
Returns
void
rename
Variable
By
Id
renameVariableById
(
id
:
string
,
newName
:
string
)
:
void
Parameters
id
:
string
newName
:
string
Returns
void
rename
Variable
With
Conflict_
renameVariableWithConflict_
(
variable
:
VariableModel
,
newName
:
string
,
conflictingVariable
:
VariableModel
,
uses
:
ScratchBlocks
.
Block
[]
,
)
:
void
Parameters
variable
:
VariableModel
newName
:
string
conflictingVariable
:
VariableModel
uses
:
ScratchBlocks
.
Block
[]
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
variable
Map_
workspace
Methods
clear
create
Variable
delete
Variable
delete
Variable
By
Id
delete
Variable
Internal_
get
All
Variables
get
Variable
get
Variable
By
Id
get
Variables
Of
Type
get
Variable
Types
get
Variable
Uses
By
Id
rename
Variable
rename
Variable
And
Uses_
rename
Variable
By
Id
rename
Variable
With
Conflict_
@turbowarp/types-tw
Loading...