-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathRatNap.java
More file actions
48 lines (40 loc) · 1.57 KB
/
RatNap.java
File metadata and controls
48 lines (40 loc) · 1.57 KB
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
// automatically generated by the FlatBuffers compiler, do not modify
package battlecode.schema;
import com.google.flatbuffers.BaseVector;
import com.google.flatbuffers.BooleanVector;
import com.google.flatbuffers.ByteVector;
import com.google.flatbuffers.Constants;
import com.google.flatbuffers.DoubleVector;
import com.google.flatbuffers.FlatBufferBuilder;
import com.google.flatbuffers.FloatVector;
import com.google.flatbuffers.IntVector;
import com.google.flatbuffers.LongVector;
import com.google.flatbuffers.ShortVector;
import com.google.flatbuffers.StringVector;
import com.google.flatbuffers.Struct;
import com.google.flatbuffers.Table;
import com.google.flatbuffers.UnionVector;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
* Kidnap a rat
*/
@SuppressWarnings("unused")
public final class RatNap extends Struct {
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public RatNap __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
/**
* Id of the napping victim
*/
public int id() { return bb.getShort(bb_pos + 0) & 0xFFFF; }
public static int createRatNap(FlatBufferBuilder builder, int id) {
builder.prep(2, 2);
builder.putShort((short) id);
return builder.offset();
}
public static final class Vector extends BaseVector {
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
public RatNap get(int j) { return get(new RatNap(), j); }
public RatNap get(RatNap obj, int j) { return obj.__assign(__element(j), bb); }
}
}