| 1 |
// automatically generated by the FlatBuffers compiler, do not modify |
| 2 |
|
| 3 |
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ |
| 4 |
|
| 5 |
import * as flatbuffers from 'flatbuffers'; |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
export class Unused implements flatbuffers.IUnpackableObject<UnusedT> { |
| 10 |
bb: flatbuffers.ByteBuffer|null = null; |
| 11 |
bb_pos = 0; |
| 12 |
__init(i:number, bb:flatbuffers.ByteBuffer):Unused { |
| 13 |
this.bb_pos = i; |
| 14 |
this.bb = bb; |
| 15 |
return this; |
| 16 |
} |
| 17 |
|
| 18 |
a():number { |
| 19 |
return this.bb!.readInt32(this.bb_pos); |
| 20 |
} |
| 21 |
|
| 22 |
mutate_a(value:number):boolean { |
| 23 |
this.bb!.writeInt32(this.bb_pos + 0, value); |
| 24 |
return true; |
| 25 |
} |
| 26 |
|
| 27 |
static getFullyQualifiedName():string { |
| 28 |
return 'MyGame.OtherNameSpace.Unused'; |
| 29 |
} |
| 30 |
|
| 31 |
static sizeOf():number { |
| 32 |
return 4; |
| 33 |
} |
| 34 |
|
| 35 |
static createUnused(builder:flatbuffers.Builder, a: number):flatbuffers.Offset { |
| 36 |
builder.prep(4, 4); |
| 37 |
builder.writeInt32(a); |
| 38 |
return builder.offset(); |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
unpack(): UnusedT { |
| 43 |
return new UnusedT( |
| 44 |
this.a() |
| 45 |
); |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
unpackTo(_o: UnusedT): void { |
| 50 |
_o.a = this.a(); |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
export class UnusedT implements flatbuffers.IGeneratedObject { |
| 55 |
constructor( |
| 56 |
public a: number = 0 |
| 57 |
){} |
| 58 |
|
| 59 |
|
| 60 |
pack(builder:flatbuffers.Builder): flatbuffers.Offset { |
| 61 |
return Unused.createUnused(builder, |
| 62 |
this.a |
| 63 |
); |
| 64 |
} |
| 65 |
} |