diff options
Diffstat (limited to 'tests/my-game/example/any-unique-aliases.js')
-rw-r--r-- | tests/my-game/example/any-unique-aliases.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/my-game/example/any-unique-aliases.js b/tests/my-game/example/any-unique-aliases.js deleted file mode 100644 index 98e55973..00000000 --- a/tests/my-game/example/any-unique-aliases.js +++ /dev/null @@ -1,29 +0,0 @@ -// automatically generated by the FlatBuffers compiler, do not modify -import { Monster as MyGame_Example2_Monster } from '../../my-game/example2/monster'; -import { Monster } from '../../my-game/example/monster'; -import { TestSimpleTableWithEnum } from '../../my-game/example/test-simple-table-with-enum'; -export var AnyUniqueAliases; -(function (AnyUniqueAliases) { - AnyUniqueAliases[AnyUniqueAliases["NONE"] = 0] = "NONE"; - AnyUniqueAliases[AnyUniqueAliases["M"] = 1] = "M"; - AnyUniqueAliases[AnyUniqueAliases["TS"] = 2] = "TS"; - AnyUniqueAliases[AnyUniqueAliases["M2"] = 3] = "M2"; -})(AnyUniqueAliases || (AnyUniqueAliases = {})); -export function unionToAnyUniqueAliases(type, accessor) { - switch (AnyUniqueAliases[type]) { - case 'NONE': return null; - case 'M': return accessor(new Monster()); - case 'TS': return accessor(new TestSimpleTableWithEnum()); - case 'M2': return accessor(new MyGame_Example2_Monster()); - default: return null; - } -} -export function unionListToAnyUniqueAliases(type, accessor, index) { - switch (AnyUniqueAliases[type]) { - case 'NONE': return null; - case 'M': return accessor(index, new Monster()); - case 'TS': return accessor(index, new TestSimpleTableWithEnum()); - case 'M2': return accessor(index, new MyGame_Example2_Monster()); - default: return null; - } -} |