Parse SB2 comments and attach block comments to the blocks they belong to. Send comment xml on workspace update so they can be rendered.

This commit is contained in:
Karishma Chadha 2018-05-21 11:30:22 -04:00
parent 057e89b1e0
commit 1401d54add
5 changed files with 183 additions and 25 deletions

View file

@ -43,16 +43,16 @@ class Target extends EventEmitter {
this.blocks = blocks;
/**
* Dictionary of variables and their values for this target.
* Key is the variable name.
* Key is the variable id.
* @type {Object.<string,*>}
*/
this.variables = {};
/**
* Dictionary of lists and their contents for this target.
* Key is the list name.
* Dictionary of comments for this target.
* Key is the comment id.
* @type {Object.<string,*>}
*/
this.lists = {};
this.comments = {};
/**
* Dictionary of custom state for this target.
* This can be used to store target-specific custom state for blocks which need it.