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