• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// automatically generated by the FlatBuffers compiler, do not modify
2import { Monster } from '../../my-game/example/monster';
3export var AnyAmbiguousAliases;
4(function (AnyAmbiguousAliases) {
5    AnyAmbiguousAliases[AnyAmbiguousAliases["NONE"] = 0] = "NONE";
6    AnyAmbiguousAliases[AnyAmbiguousAliases["M1"] = 1] = "M1";
7    AnyAmbiguousAliases[AnyAmbiguousAliases["M2"] = 2] = "M2";
8    AnyAmbiguousAliases[AnyAmbiguousAliases["M3"] = 3] = "M3";
9})(AnyAmbiguousAliases || (AnyAmbiguousAliases = {}));
10export function unionToAnyAmbiguousAliases(type, accessor) {
11    switch (AnyAmbiguousAliases[type]) {
12        case 'NONE': return null;
13        case 'M1': return accessor(new Monster());
14        case 'M2': return accessor(new Monster());
15        case 'M3': return accessor(new Monster());
16        default: return null;
17    }
18}
19export function unionListToAnyAmbiguousAliases(type, accessor, index) {
20    switch (AnyAmbiguousAliases[type]) {
21        case 'NONE': return null;
22        case 'M1': return accessor(index, new Monster());
23        case 'M2': return accessor(index, new Monster());
24        case 'M3': return accessor(index, new Monster());
25        default: return null;
26    }
27}
28