mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 06:10:26 -04:00
Add 'islocal' flag to XML serialization for variables.
This commit is contained in:
parent
ed608ffe6f
commit
a0a11f2f19
2 changed files with 11 additions and 8 deletions
src/engine
|
@ -33,8 +33,9 @@ class Variable {
|
|||
}
|
||||
}
|
||||
|
||||
toXML () {
|
||||
return `<variable type="${this.type}" id="${this.id}">${this.name}</variable>`;
|
||||
toXML (isLocal) {
|
||||
isLocal = (isLocal === true);
|
||||
return `<variable type="${this.type}" id="${this.id}" islocal="${isLocal}">${this.name}</variable>`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue