// automatically generated by the FlatBuffers compiler, do not modify import * as flatbuffers from 'flatbuffers'; export class MatchFoundEvent { bb: flatbuffers.ByteBuffer|null = null; bb_pos = 0; __init(i:number, bb:flatbuffers.ByteBuffer):MatchFoundEvent { this.bb_pos = i; this.bb = bb; return this; } static getRootAsMatchFoundEvent(bb:flatbuffers.ByteBuffer, obj?:MatchFoundEvent):MatchFoundEvent { return (obj || new MatchFoundEvent()).__init(bb.readInt32(bb.position()) + bb.position(), bb); } static getSizePrefixedRootAsMatchFoundEvent(bb:flatbuffers.ByteBuffer, obj?:MatchFoundEvent):MatchFoundEvent { bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH); return (obj || new MatchFoundEvent()).__init(bb.readInt32(bb.position()) + bb.position(), bb); } gameId():string|null gameId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null gameId(optionalEncoding?:any):string|Uint8Array|null { const offset = this.bb!.__offset(this.bb_pos, 4); return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null; } static startMatchFoundEvent(builder:flatbuffers.Builder) { builder.startObject(1); } static addGameId(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset) { builder.addFieldOffset(0, gameIdOffset, 0); } static endMatchFoundEvent(builder:flatbuffers.Builder):flatbuffers.Offset { const offset = builder.endObject(); return offset; } static createMatchFoundEvent(builder:flatbuffers.Builder, gameIdOffset:flatbuffers.Offset):flatbuffers.Offset { MatchFoundEvent.startMatchFoundEvent(builder); MatchFoundEvent.addGameId(builder, gameIdOffset); return MatchFoundEvent.endMatchFoundEvent(builder); } }