mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 15:16:28 +00:00
Made JS enum declarations compatible with google closure
Original change by: https://github.com/alexames Change-Id: Ib65bd02156d1c3637ed278a8334a2307caacaa44
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user