mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 01:27:31 +00:00
Partial support for --ts-flat-files and --gen-all (#7446)
* Partial support for --ts-flat-files and --gen-all * Add generated code changes * remove some debugging code left over * missed grpc files
This commit is contained in:
@@ -7,7 +7,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
export class Attacker {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Attacker {
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Attacker {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
export class BookReader {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):BookReader {
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):BookReader {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { BookReader, BookReaderT } from './book-reader';
|
||||
import { Rapunzel, RapunzelT } from './rapunzel';
|
||||
|
||||
|
||||
export enum Character{
|
||||
export enum Character {
|
||||
NONE = 0,
|
||||
MuLan = 1,
|
||||
Rapunzel = 2,
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
export class FallingTub {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):FallingTub {
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):FallingTub {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { FallingTub, FallingTubT } from './falling-tub';
|
||||
import { HandFan, HandFanT } from './hand-fan';
|
||||
|
||||
|
||||
export enum Gadget{
|
||||
export enum Gadget {
|
||||
NONE = 0,
|
||||
FallingTub = 1,
|
||||
HandFan = 2
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
export class HandFan {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):HandFan {
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):HandFan {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
|
||||
@@ -11,7 +11,7 @@ import { Rapunzel, RapunzelT } from './rapunzel';
|
||||
export class Movie {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Movie {
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Movie {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
export class Rapunzel {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Rapunzel {
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Rapunzel {
|
||||
this.bb_pos = i;
|
||||
this.bb = bb;
|
||||
return this;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
export { Attacker, AttackerT } from './attacker';
|
||||
export { BookReader, BookReaderT } from './book-reader';
|
||||
export { Character, unionToCharacter, unionListToCharacter } from './character';
|
||||
|
||||
Reference in New Issue
Block a user