// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';



export class UserGamesCommandResponse implements flatbuffers.IUnpackableObject<UserGamesCommandResponseT> {
  bb: flatbuffers.ByteBuffer|null = null;
  bb_pos = 0;
  __init(i:number, bb:flatbuffers.ByteBuffer):UserGamesCommandResponse {
  this.bb_pos = i;
  this.bb = bb;
  return this;
}

static getRootAsUserGamesCommandResponse(bb:flatbuffers.ByteBuffer, obj?:UserGamesCommandResponse):UserGamesCommandResponse {
  return (obj || new UserGamesCommandResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}

static getSizePrefixedRootAsUserGamesCommandResponse(bb:flatbuffers.ByteBuffer, obj?:UserGamesCommandResponse):UserGamesCommandResponse {
  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
  return (obj || new UserGamesCommandResponse()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}

static startUserGamesCommandResponse(builder:flatbuffers.Builder) {
  builder.startObject(0);
}

static endUserGamesCommandResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
  const offset = builder.endObject();
  return offset;
}

static createUserGamesCommandResponse(builder:flatbuffers.Builder):flatbuffers.Offset {
  UserGamesCommandResponse.startUserGamesCommandResponse(builder);
  return UserGamesCommandResponse.endUserGamesCommandResponse(builder);
}

unpack(): UserGamesCommandResponseT {
  return new UserGamesCommandResponseT();
}


unpackTo(_o: UserGamesCommandResponseT): void {}
}

export class UserGamesCommandResponseT implements flatbuffers.IGeneratedObject {
constructor(){}


pack(builder:flatbuffers.Builder): flatbuffers.Offset {
  return UserGamesCommandResponse.createUserGamesCommandResponse(builder);
}
}
