Skip to content

Commit

Permalink
BOTCH.debugMode #31
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Sep 6, 2020
1 parent 3bb0748 commit 6ceb37b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/extensions/botch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Scratch3Botch {
}

constructor (runtime) {
this.debugMode = true;
this.runtime = runtime;
this.storage = this.runtime.storage;
// map that contains the organism <id, org> or enemies
Expand Down Expand Up @@ -97,6 +98,12 @@ class Scratch3Botch {
this.runtime.on('targetWasCreated', this._onTargetCreated);
}

switchDebugMode (){
this.debugMode = !this.debugMode;
// TO DO would like to force refresh, tried to emit Runtime.PROJECT_CHANGED and didn't work

}

getInfo () {
return {
id: 'botch',
Expand Down

0 comments on commit 6ceb37b

Please sign in to comment.