1// automatically generated by the FlatBuffers compiler, do not modify 2export class FallingTub { 3 constructor() { 4 this.bb = null; 5 this.bb_pos = 0; 6 } 7 __init(i, bb) { 8 this.bb_pos = i; 9 this.bb = bb; 10 return this; 11 } 12 weight() { 13 return this.bb.readInt32(this.bb_pos); 14 } 15 mutate_weight(value) { 16 this.bb.writeInt32(this.bb_pos + 0, value); 17 return true; 18 } 19 static getFullyQualifiedName() { 20 return 'FallingTub'; 21 } 22 static sizeOf() { 23 return 4; 24 } 25 static createFallingTub(builder, weight) { 26 builder.prep(4, 4); 27 builder.writeInt32(weight); 28 return builder.offset(); 29 } 30 unpack() { 31 return new FallingTubT(this.weight()); 32 } 33 unpackTo(_o) { 34 _o.weight = this.weight(); 35 } 36} 37export class FallingTubT { 38 constructor(weight = 0) { 39 this.weight = weight; 40 } 41 pack(builder) { 42 return FallingTub.createFallingTub(builder, this.weight); 43 } 44} 45