File: MonsterExtraT.java

package info (click to toggle)
flatbuffers 2.0.8%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,308 kB
  • sloc: cpp: 44,808; python: 6,544; cs: 4,852; java: 4,389; ansic: 1,615; php: 1,455; xml: 973; javascript: 938; sh: 806; makefile: 35
file content (84 lines) | stat: -rw-r--r-- 2,049 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// automatically generated by the FlatBuffers compiler, do not modify

package MyGame;

import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;

public class MonsterExtraT {
  private double d0;
  private double d1;
  private double d2;
  private double d3;
  private float f0;
  private float f1;
  private float f2;
  private float f3;
  private double[] dvec;
  private float[] fvec;

  public double getD0() { return d0; }

  public void setD0(double d0) { this.d0 = d0; }

  public double getD1() { return d1; }

  public void setD1(double d1) { this.d1 = d1; }

  public double getD2() { return d2; }

  public void setD2(double d2) { this.d2 = d2; }

  public double getD3() { return d3; }

  public void setD3(double d3) { this.d3 = d3; }

  public float getF0() { return f0; }

  public void setF0(float f0) { this.f0 = f0; }

  public float getF1() { return f1; }

  public void setF1(float f1) { this.f1 = f1; }

  public float getF2() { return f2; }

  public void setF2(float f2) { this.f2 = f2; }

  public float getF3() { return f3; }

  public void setF3(float f3) { this.f3 = f3; }

  public double[] getDvec() { return dvec; }

  public void setDvec(double[] dvec) { this.dvec = dvec; }

  public float[] getFvec() { return fvec; }

  public void setFvec(float[] fvec) { this.fvec = fvec; }


  public MonsterExtraT() {
    this.d0 = Double.NaN;
    this.d1 = Double.NaN;
    this.d2 = Double.POSITIVE_INFINITY;
    this.d3 = Double.NEGATIVE_INFINITY;
    this.f0 = Float.NaN;
    this.f1 = Float.NaN;
    this.f2 = Float.POSITIVE_INFINITY;
    this.f3 = Float.NEGATIVE_INFINITY;
    this.dvec = null;
    this.fvec = null;
  }
  public static MonsterExtraT deserializeFromBinary(byte[] fbBuffer) {
    return MonsterExtra.getRootAsMonsterExtra(ByteBuffer.wrap(fbBuffer)).unpack();
  }
  public byte[] serializeToBinary() {
    FlatBufferBuilder fbb = new FlatBufferBuilder();
    MonsterExtra.finishMonsterExtraBuffer(fbb, MonsterExtra.pack(fbb, this));
    return fbb.sizedByteArray();
  }
}