1# automatically generated by the FlatBuffers compiler, do not modify 2 3# namespace: Example 4 5class AnyAmbiguousAliases(object): 6 NONE = 0 7 M1 = 1 8 M2 = 2 9 M3 = 3 10 11def AnyAmbiguousAliasesCreator(unionType, table): 12 from flatbuffers.table import Table 13 if not isinstance(table, Table): 14 return None 15 if unionType == AnyAmbiguousAliases().M1: 16 import MyGame.Example.Monster 17 return MyGame.Example.Monster.MonsterT.InitFromBuf(table.Bytes, table.Pos) 18 if unionType == AnyAmbiguousAliases().M2: 19 import MyGame.Example.Monster 20 return MyGame.Example.Monster.MonsterT.InitFromBuf(table.Bytes, table.Pos) 21 if unionType == AnyAmbiguousAliases().M3: 22 import MyGame.Example.Monster 23 return MyGame.Example.Monster.MonsterT.InitFromBuf(table.Bytes, table.Pos) 24 return None 25