1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package MyGame; 4 5 import java.nio.*; 6 import java.lang.*; 7 import java.util.*; 8 import com.google.flatbuffers.*; 9 10 public class MonsterExtraT { 11 private double d0; 12 private double d1; 13 private double d2; 14 private double d3; 15 private float f0; 16 private float f1; 17 private float f2; 18 private float f3; 19 private double[] dvec; 20 private float[] fvec; 21 getD0()22 public double getD0() { return d0; } 23 setD0(double d0)24 public void setD0(double d0) { this.d0 = d0; } 25 getD1()26 public double getD1() { return d1; } 27 setD1(double d1)28 public void setD1(double d1) { this.d1 = d1; } 29 getD2()30 public double getD2() { return d2; } 31 setD2(double d2)32 public void setD2(double d2) { this.d2 = d2; } 33 getD3()34 public double getD3() { return d3; } 35 setD3(double d3)36 public void setD3(double d3) { this.d3 = d3; } 37 getF0()38 public float getF0() { return f0; } 39 setF0(float f0)40 public void setF0(float f0) { this.f0 = f0; } 41 getF1()42 public float getF1() { return f1; } 43 setF1(float f1)44 public void setF1(float f1) { this.f1 = f1; } 45 getF2()46 public float getF2() { return f2; } 47 setF2(float f2)48 public void setF2(float f2) { this.f2 = f2; } 49 getF3()50 public float getF3() { return f3; } 51 setF3(float f3)52 public void setF3(float f3) { this.f3 = f3; } 53 getDvec()54 public double[] getDvec() { return dvec; } 55 setDvec(double[] dvec)56 public void setDvec(double[] dvec) { this.dvec = dvec; } 57 getFvec()58 public float[] getFvec() { return fvec; } 59 setFvec(float[] fvec)60 public void setFvec(float[] fvec) { this.fvec = fvec; } 61 62 MonsterExtraT()63 public MonsterExtraT() { 64 this.d0 = Double.NaN; 65 this.d1 = Double.NaN; 66 this.d2 = Double.POSITIVE_INFINITY; 67 this.d3 = Double.NEGATIVE_INFINITY; 68 this.f0 = Float.NaN; 69 this.f1 = Float.NaN; 70 this.f2 = Float.POSITIVE_INFINITY; 71 this.f3 = Float.NEGATIVE_INFINITY; 72 this.dvec = null; 73 this.fvec = null; 74 } deserializeFromBinary(byte[] fbBuffer)75 public static MonsterExtraT deserializeFromBinary(byte[] fbBuffer) { 76 return MonsterExtra.getRootAsMonsterExtra(ByteBuffer.wrap(fbBuffer)).unpack(); 77 } serializeToBinary()78 public byte[] serializeToBinary() { 79 FlatBufferBuilder fbb = new FlatBufferBuilder(); 80 MonsterExtra.finishMonsterExtraBuffer(fbb, MonsterExtra.pack(fbb, this)); 81 return fbb.sizedByteArray(); 82 } 83 } 84 85