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

package report

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

type OtherPlanet struct {
	_tab flatbuffers.Table
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (rcv *OtherPlanet) MutateIndustry(n float32) bool {
	return rcv._tab.MutateFloat32Slot(22, n)
}

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

func (rcv *OtherPlanet) MutatePopulation(n float32) bool {
	return rcv._tab.MutateFloat32Slot(24, n)
}

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

func (rcv *OtherPlanet) MutateColonists(n float32) bool {
	return rcv._tab.MutateFloat32Slot(26, n)
}

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

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

func (rcv *OtherPlanet) MutateFreeIndustry(n float32) bool {
	return rcv._tab.MutateFloat32Slot(30, n)
}

func OtherPlanetStart(builder *flatbuffers.Builder) {
	builder.StartObject(14)
}
func OtherPlanetAddOwner(builder *flatbuffers.Builder, owner flatbuffers.UOffsetT) {
	builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(owner), 0)
}
func OtherPlanetAddX(builder *flatbuffers.Builder, x float32) {
	builder.PrependFloat32Slot(1, x, 0.0)
}
func OtherPlanetAddY(builder *flatbuffers.Builder, y float32) {
	builder.PrependFloat32Slot(2, y, 0.0)
}
func OtherPlanetAddNumber(builder *flatbuffers.Builder, number uint64) {
	builder.PrependUint64Slot(3, number, 0)
}
func OtherPlanetAddSize(builder *flatbuffers.Builder, size float32) {
	builder.PrependFloat32Slot(4, size, 0.0)
}
func OtherPlanetAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) {
	builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(name), 0)
}
func OtherPlanetAddResources(builder *flatbuffers.Builder, resources float32) {
	builder.PrependFloat32Slot(6, resources, 0.0)
}
func OtherPlanetAddCapital(builder *flatbuffers.Builder, capital float32) {
	builder.PrependFloat32Slot(7, capital, 0.0)
}
func OtherPlanetAddMaterial(builder *flatbuffers.Builder, material float32) {
	builder.PrependFloat32Slot(8, material, 0.0)
}
func OtherPlanetAddIndustry(builder *flatbuffers.Builder, industry float32) {
	builder.PrependFloat32Slot(9, industry, 0.0)
}
func OtherPlanetAddPopulation(builder *flatbuffers.Builder, population float32) {
	builder.PrependFloat32Slot(10, population, 0.0)
}
func OtherPlanetAddColonists(builder *flatbuffers.Builder, colonists float32) {
	builder.PrependFloat32Slot(11, colonists, 0.0)
}
func OtherPlanetAddProduction(builder *flatbuffers.Builder, production flatbuffers.UOffsetT) {
	builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(production), 0)
}
func OtherPlanetAddFreeIndustry(builder *flatbuffers.Builder, freeIndustry float32) {
	builder.PrependFloat32Slot(13, freeIndustry, 0.0)
}
func OtherPlanetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
