Made JS enum declarations compatible with google closure

Original change by: https://github.com/alexames

Change-Id: Ib65bd02156d1c3637ed278a8334a2307caacaa44
This commit is contained in:
Wouter van Oortmerssen
2019-03-11 14:33:07 -07:00
parent ca68d8b043
commit 4f066c39ce
7 changed files with 117 additions and 54 deletions

View File

@@ -1,16 +1,29 @@
// automatically generated by the FlatBuffers compiler, do not modify
/**
* @enum
* @enum {number}
*/
var Character = {
NONE: 0, 0: 'NONE',
MuLan: 1, 1: 'MuLan',
Rapunzel: 2, 2: 'Rapunzel',
Belle: 3, 3: 'Belle',
BookFan: 4, 4: 'BookFan',
Other: 5, 5: 'Other',
Unused: 6, 6: 'Unused'
NONE: 0,
MuLan: 1,
Rapunzel: 2,
Belle: 3,
BookFan: 4,
Other: 5,
Unused: 6
};
/**
* @enum {string}
*/
var CharacterName = {
0: 'NONE',
1: 'MuLan',
2: 'Rapunzel',
3: 'Belle',
4: 'BookFan',
5: 'Other',
6: 'Unused'
};
/**
@@ -459,6 +472,7 @@ Movie.createMovie = function(builder, mainCharacterType, mainCharacterOffset, ch
// Exports for Node.js and RequireJS
this.Character = Character;
this.CharacterName = CharacterName;
this.Attacker = Attacker;
this.Rapunzel = Rapunzel;
this.BookReader = BookReader;