blob: 8065218b4c558bcb632a0070a4fc12e00f7c264c [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3package MyGame.Example2;
4
5import java.nio.*;
6import java.lang.*;
7import java.util.*;
8import com.google.flatbuffers.*;
9
10@SuppressWarnings("unused")
11public final class Monster extends Table {
Austin Schuh2dd86a92022-09-14 21:19:23 -070012 public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_8(); }
Austin Schuhe89fa2d2019-08-14 20:24:23 -070013 public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); }
14 public static Monster getRootAsMonster(ByteBuffer _bb, Monster obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
15 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
16 public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
17
18
19 public static void startMonster(FlatBufferBuilder builder) { builder.startTable(0); }
20 public static int endMonster(FlatBufferBuilder builder) {
21 int o = builder.endTable();
22 return o;
23 }
Austin Schuh272c6132020-11-14 16:37:52 -080024
25 public static final class Vector extends BaseVector {
26 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
27
28 public Monster get(int j) { return get(new Monster(), j); }
29 public Monster get(Monster obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
30 }
James Kuszmaul8e62b022022-03-22 09:33:25 -070031 public MonsterT unpack() {
32 MonsterT _o = new MonsterT();
33 unpackTo(_o);
34 return _o;
35 }
36 public void unpackTo(MonsterT _o) {
37 }
38 public static int pack(FlatBufferBuilder builder, MonsterT _o) {
39 if (_o == null) return 0;
40 startMonster(builder);
41 return endMonster(builder);
42 }
Austin Schuhe89fa2d2019-08-14 20:24:23 -070043}
44