Add ability to create cloud variables, and have cloud provider wait for confirmation from server.

This commit is contained in:
Karishma Chadha 2018-11-13 14:48:49 -05:00
parent 0a68722b80
commit 3fc1b89b30
4 changed files with 58 additions and 6 deletions
src/engine

View file

@ -366,7 +366,7 @@ class Blocks {
// into a state where a local var was requested for the stage,
// create a stage (global) var after checking for name conflicts
// on all the sprites.
if (e.isLocal && editingTarget && !editingTarget.isStage) {
if (e.isLocal && editingTarget && !editingTarget.isStage && !e.isCloud) {
if (!editingTarget.lookupVariableById(e.varId)) {
editingTarget.createVariable(e.varId, e.varName, e.varType);
}
@ -378,7 +378,7 @@ class Blocks {
return;
}
}
stage.createVariable(e.varId, e.varName, e.varType);
stage.createVariable(e.varId, e.varName, e.varType, e.isCloud);
}
break;
case 'var_rename':