// 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 CommandRaceQuit implements flatbuffers.IUnpackableObject<CommandRaceQuitT> {
  bb: flatbuffers.ByteBuffer|null = null;
  bb_pos = 0;
  __init(i:number, bb:flatbuffers.ByteBuffer):CommandRaceQuit {
  this.bb_pos = i;
  this.bb = bb;
  return this;
}

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

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

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

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

static createCommandRaceQuit(builder:flatbuffers.Builder):flatbuffers.Offset {
  CommandRaceQuit.startCommandRaceQuit(builder);
  return CommandRaceQuit.endCommandRaceQuit(builder);
}

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


unpackTo(_o: CommandRaceQuitT): void {}
}

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


pack(builder:flatbuffers.Builder): flatbuffers.Offset {
  return CommandRaceQuit.createCommandRaceQuit(builder);
}
}
