mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
Generate example code
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import { Monster, MonsterT } from '../../my-game/example/monster.js';
|
||||
import { Monster, MonsterT } from './monster.js';
|
||||
|
||||
|
||||
export enum AnyAmbiguousAliases {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js';
|
||||
import { Monster, MonsterT } from '../../my-game/example/monster.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js';
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js';
|
||||
import { Monster, MonsterT } from './monster.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js';
|
||||
|
||||
|
||||
export enum AnyUniqueAliases {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js';
|
||||
import { Monster, MonsterT } from '../../my-game/example/monster.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js';
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js';
|
||||
import { Monster, MonsterT } from './monster.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js';
|
||||
|
||||
|
||||
export enum Any {
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js';
|
||||
import { Ability, AbilityT } from '../../my-game/example/ability.js';
|
||||
import { Any, unionToAny, unionListToAny } from '../../my-game/example/any.js';
|
||||
import { AnyAmbiguousAliases, unionToAnyAmbiguousAliases, unionListToAnyAmbiguousAliases } from '../../my-game/example/any-ambiguous-aliases.js';
|
||||
import { AnyUniqueAliases, unionToAnyUniqueAliases, unionListToAnyUniqueAliases } from '../../my-game/example/any-unique-aliases.js';
|
||||
import { Color } from '../../my-game/example/color.js';
|
||||
import { Race } from '../../my-game/example/race.js';
|
||||
import { Referrable, ReferrableT } from '../../my-game/example/referrable.js';
|
||||
import { Stat, StatT } from '../../my-game/example/stat.js';
|
||||
import { Test, TestT } from '../../my-game/example/test.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js';
|
||||
import { Vec3, Vec3T } from '../../my-game/example/vec3.js';
|
||||
import { InParentNamespace, InParentNamespaceT } from '../../my-game/in-parent-namespace.js';
|
||||
import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js';
|
||||
import { Ability, AbilityT } from './ability.js';
|
||||
import { Any, unionToAny, unionListToAny } from './any.js';
|
||||
import { AnyAmbiguousAliases, unionToAnyAmbiguousAliases, unionListToAnyAmbiguousAliases } from './any-ambiguous-aliases.js';
|
||||
import { AnyUniqueAliases, unionToAnyUniqueAliases, unionListToAnyUniqueAliases } from './any-unique-aliases.js';
|
||||
import { Color } from './color.js';
|
||||
import { Race } from './race.js';
|
||||
import { Referrable, ReferrableT } from './referrable.js';
|
||||
import { Stat, StatT } from './stat.js';
|
||||
import { Test, TestT } from './test.js';
|
||||
import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js';
|
||||
import { Vec3, Vec3T } from './vec3.js';
|
||||
import { InParentNamespace, InParentNamespaceT } from '../in-parent-namespace.js';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { StructOfStructs, StructOfStructsT } from '../../my-game/example/struct-of-structs.js';
|
||||
import { StructOfStructs, StructOfStructsT } from './struct-of-structs.js';
|
||||
|
||||
|
||||
export class StructOfStructsOfStructs implements flatbuffers.IUnpackableObject<StructOfStructsOfStructsT> {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { Ability, AbilityT } from '../../my-game/example/ability.js';
|
||||
import { Test, TestT } from '../../my-game/example/test.js';
|
||||
import { Ability, AbilityT } from './ability.js';
|
||||
import { Test, TestT } from './test.js';
|
||||
|
||||
|
||||
export class StructOfStructs implements flatbuffers.IUnpackableObject<StructOfStructsT> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { Color } from '../../my-game/example/color.js';
|
||||
import { Color } from './color.js';
|
||||
|
||||
|
||||
export class TestSimpleTableWithEnum implements flatbuffers.IUnpackableObject<TestSimpleTableWithEnumT> {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { Color } from '../../my-game/example/color.js';
|
||||
import { Test, TestT } from '../../my-game/example/test.js';
|
||||
import { Color } from './color.js';
|
||||
import { Test, TestT } from './test.js';
|
||||
|
||||
|
||||
export class Vec3 implements flatbuffers.IUnpackableObject<Vec3T> {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { OptionalByte } from '../optional-scalars/optional-byte.js';
|
||||
import { OptionalByte } from './optional-byte.js';
|
||||
|
||||
|
||||
export class ScalarStuff {
|
||||
|
||||
Reference in New Issue
Block a user