// Code generated by the FlatBuffers compiler. DO NOT EDIT.

package report

import (
	flatbuffers "github.com/google/flatbuffers/go"
)

type UninhabitedPlanet struct {
	_tab flatbuffers.Table
}

func GetRootAsUninhabitedPlanet(buf []byte, offset flatbuffers.UOffsetT) *UninhabitedPlanet {
	n := flatbuffers.GetUOffsetT(buf[offset:])
	x := &UninhabitedPlanet{}
	x.Init(buf, n+offset)
	return x
}

func FinishUninhabitedPlanetBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
	builder.Finish(offset)
}

func GetSizePrefixedRootAsUninhabitedPlanet(buf []byte, offset flatbuffers.UOffsetT) *UninhabitedPlanet {
	n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])
	x := &UninhabitedPlanet{}
	x.Init(buf, n+offset+flatbuffers.SizeUint32)
	return x
}

func FinishSizePrefixedUninhabitedPlanetBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
	builder.FinishSizePrefixed(offset)
}

func (rcv *UninhabitedPlanet) Init(buf []byte, i flatbuffers.UOffsetT) {
	rcv._tab.Bytes = buf
	rcv._tab.Pos = i
}

func (rcv *UninhabitedPlanet) Table() flatbuffers.Table {
	return rcv._tab
}

func (rcv *UninhabitedPlanet) X() float32 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
	if o != 0 {
		return rcv._tab.GetFloat32(o + rcv._tab.Pos)
	}
	return 0.0
}

func (rcv *UninhabitedPlanet) MutateX(n float32) bool {
	return rcv._tab.MutateFloat32Slot(4, n)
}

func (rcv *UninhabitedPlanet) Y() float32 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
	if o != 0 {
		return rcv._tab.GetFloat32(o + rcv._tab.Pos)
	}
	return 0.0
}

func (rcv *UninhabitedPlanet) MutateY(n float32) bool {
	return rcv._tab.MutateFloat32Slot(6, n)
}

func (rcv *UninhabitedPlanet) Number() uint64 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(8))
	if o != 0 {
		return rcv._tab.GetUint64(o + rcv._tab.Pos)
	}
	return 0
}

func (rcv *UninhabitedPlanet) MutateNumber(n uint64) bool {
	return rcv._tab.MutateUint64Slot(8, n)
}

func (rcv *UninhabitedPlanet) Size() float32 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(10))
	if o != 0 {
		return rcv._tab.GetFloat32(o + rcv._tab.Pos)
	}
	return 0.0
}

func (rcv *UninhabitedPlanet) MutateSize(n float32) bool {
	return rcv._tab.MutateFloat32Slot(10, n)
}

func (rcv *UninhabitedPlanet) Name() []byte {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(12))
	if o != 0 {
		return rcv._tab.ByteVector(o + rcv._tab.Pos)
	}
	return nil
}

func (rcv *UninhabitedPlanet) Resources() float32 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(14))
	if o != 0 {
		return rcv._tab.GetFloat32(o + rcv._tab.Pos)
	}
	return 0.0
}

func (rcv *UninhabitedPlanet) MutateResources(n float32) bool {
	return rcv._tab.MutateFloat32Slot(14, n)
}

func (rcv *UninhabitedPlanet) Capital() float32 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(16))
	if o != 0 {
		return rcv._tab.GetFloat32(o + rcv._tab.Pos)
	}
	return 0.0
}

func (rcv *UninhabitedPlanet) MutateCapital(n float32) bool {
	return rcv._tab.MutateFloat32Slot(16, n)
}

func (rcv *UninhabitedPlanet) Material() float32 {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(18))
	if o != 0 {
		return rcv._tab.GetFloat32(o + rcv._tab.Pos)
	}
	return 0.0
}

func (rcv *UninhabitedPlanet) MutateMaterial(n float32) bool {
	return rcv._tab.MutateFloat32Slot(18, n)
}

func UninhabitedPlanetStart(builder *flatbuffers.Builder) {
	builder.StartObject(8)
}
func UninhabitedPlanetAddX(builder *flatbuffers.Builder, x float32) {
	builder.PrependFloat32Slot(0, x, 0.0)
}
func UninhabitedPlanetAddY(builder *flatbuffers.Builder, y float32) {
	builder.PrependFloat32Slot(1, y, 0.0)
}
func UninhabitedPlanetAddNumber(builder *flatbuffers.Builder, number uint64) {
	builder.PrependUint64Slot(2, number, 0)
}
func UninhabitedPlanetAddSize(builder *flatbuffers.Builder, size float32) {
	builder.PrependFloat32Slot(3, size, 0.0)
}
func UninhabitedPlanetAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) {
	builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(name), 0)
}
func UninhabitedPlanetAddResources(builder *flatbuffers.Builder, resources float32) {
	builder.PrependFloat32Slot(5, resources, 0.0)
}
func UninhabitedPlanetAddCapital(builder *flatbuffers.Builder, capital float32) {
	builder.PrependFloat32Slot(6, capital, 0.0)
}
func UninhabitedPlanetAddMaterial(builder *flatbuffers.Builder, material float32) {
	builder.PrependFloat32Slot(7, material, 0.0)
}
func UninhabitedPlanetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
