diff --git a/core/gen/main/java/com/riiablo/net/packet/bncs/BNCS.java b/core/gen/main/java/com/riiablo/net/packet/bncs/BNCS.java index d31d0773..4d2415ac 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bncs/BNCS.java +++ b/core/gen/main/java/com/riiablo/net/packet/bncs/BNCS.java @@ -9,31 +9,39 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class BNCS extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static BNCS getRootAsBNCS(ByteBuffer _bb) { return getRootAsBNCS(_bb, new BNCS()); } public static BNCS getRootAsBNCS(ByteBuffer _bb, BNCS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public BNCS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte dataType() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 0; } - public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o) : null; } + public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o + bb_pos) : null; } public static int createBNCS(FlatBufferBuilder builder, byte data_type, int dataOffset) { - builder.startObject(2); + builder.startTable(2); BNCS.addData(builder, dataOffset); BNCS.addDataType(builder, data_type); return BNCS.endBNCS(builder); } - public static void startBNCS(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startBNCS(FlatBufferBuilder builder) { builder.startTable(2); } public static void addDataType(FlatBufferBuilder builder, byte dataType) { builder.addByte(0, dataType, 0); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(1, dataOffset, 0); } public static int endBNCS(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } public static void finishBNCSBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } public static void finishSizePrefixedBNCSBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(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 BNCS get(int j) { return get(new BNCS(), j); } + public BNCS get(BNCS obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bncs/ChatEvent.java b/core/gen/main/java/com/riiablo/net/packet/bncs/ChatEvent.java index 77263194..dcec769b 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bncs/ChatEvent.java +++ b/core/gen/main/java/com/riiablo/net/packet/bncs/ChatEvent.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ChatEvent extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ChatEvent getRootAsChatEvent(ByteBuffer _bb) { return getRootAsChatEvent(_bb, new ChatEvent()); } public static ChatEvent getRootAsChatEvent(ByteBuffer _bb, ChatEvent obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ChatEvent __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte eid() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 19; } @@ -26,20 +27,27 @@ public final class ChatEvent extends Table { byte eid, int nameOffset, int textOffset) { - builder.startObject(3); + builder.startTable(3); ChatEvent.addText(builder, textOffset); ChatEvent.addName(builder, nameOffset); ChatEvent.addEid(builder, eid); return ChatEvent.endChatEvent(builder); } - public static void startChatEvent(FlatBufferBuilder builder) { builder.startObject(3); } + public static void startChatEvent(FlatBufferBuilder builder) { builder.startTable(3); } public static void addEid(FlatBufferBuilder builder, byte eid) { builder.addByte(0, eid, 19); } public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(1, nameOffset, 0); } public static void addText(FlatBufferBuilder builder, int textOffset) { builder.addOffset(2, textOffset, 0); } public static int endChatEvent(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ChatEvent get(int j) { return get(new ChatEvent(), j); } + public ChatEvent get(ChatEvent obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bnls/BNLS.java b/core/gen/main/java/com/riiablo/net/packet/bnls/BNLS.java index dd964ff1..8b12bff0 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bnls/BNLS.java +++ b/core/gen/main/java/com/riiablo/net/packet/bnls/BNLS.java @@ -9,31 +9,39 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class BNLS extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static BNLS getRootAsBNLS(ByteBuffer _bb) { return getRootAsBNLS(_bb, new BNLS()); } public static BNLS getRootAsBNLS(ByteBuffer _bb, BNLS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public BNLS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte dataType() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 0; } - public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o) : null; } + public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o + bb_pos) : null; } public static int createBNLS(FlatBufferBuilder builder, byte data_type, int dataOffset) { - builder.startObject(2); + builder.startTable(2); BNLS.addData(builder, dataOffset); BNLS.addDataType(builder, data_type); return BNLS.endBNLS(builder); } - public static void startBNLS(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startBNLS(FlatBufferBuilder builder) { builder.startTable(2); } public static void addDataType(FlatBufferBuilder builder, byte dataType) { builder.addByte(0, dataType, 0); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(1, dataOffset, 0); } public static int endBNLS(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } public static void finishBNLSBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } public static void finishSizePrefixedBNLSBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(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 BNLS get(int j) { return get(new BNLS(), j); } + public BNLS get(BNLS obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionAccepted.java b/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionAccepted.java index fb0f2e27..0ba85815 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionAccepted.java +++ b/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionAccepted.java @@ -9,16 +9,24 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ConnectionAccepted extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ConnectionAccepted getRootAsConnectionAccepted(ByteBuffer _bb) { return getRootAsConnectionAccepted(_bb, new ConnectionAccepted()); } public static ConnectionAccepted getRootAsConnectionAccepted(ByteBuffer _bb, ConnectionAccepted obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ConnectionAccepted __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public static void startConnectionAccepted(FlatBufferBuilder builder) { builder.startObject(0); } + public static void startConnectionAccepted(FlatBufferBuilder builder) { builder.startTable(0); } public static int endConnectionAccepted(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ConnectionAccepted get(int j) { return get(new ConnectionAccepted(), j); } + public ConnectionAccepted get(ConnectionAccepted obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionClosed.java b/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionClosed.java index 6eb8a262..d55ee240 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionClosed.java +++ b/core/gen/main/java/com/riiablo/net/packet/bnls/ConnectionClosed.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ConnectionClosed extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ConnectionClosed getRootAsConnectionClosed(ByteBuffer _bb) { return getRootAsConnectionClosed(_bb, new ConnectionClosed()); } public static ConnectionClosed getRootAsConnectionClosed(ByteBuffer _bb, ConnectionClosed obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ConnectionClosed __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public String reason() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } @@ -20,16 +21,23 @@ public final class ConnectionClosed extends Table { public static int createConnectionClosed(FlatBufferBuilder builder, int reasonOffset) { - builder.startObject(1); + builder.startTable(1); ConnectionClosed.addReason(builder, reasonOffset); return ConnectionClosed.endConnectionClosed(builder); } - public static void startConnectionClosed(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startConnectionClosed(FlatBufferBuilder builder) { builder.startTable(1); } public static void addReason(FlatBufferBuilder builder, int reasonOffset) { builder.addOffset(0, reasonOffset, 0); } public static int endConnectionClosed(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ConnectionClosed get(int j) { return get(new ConnectionClosed(), j); } + public ConnectionClosed get(ConnectionClosed obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bnls/LoginResponse.java b/core/gen/main/java/com/riiablo/net/packet/bnls/LoginResponse.java index 02813551..d1721c6e 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bnls/LoginResponse.java +++ b/core/gen/main/java/com/riiablo/net/packet/bnls/LoginResponse.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class LoginResponse extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static LoginResponse getRootAsLoginResponse(ByteBuffer _bb) { return getRootAsLoginResponse(_bb, new LoginResponse()); } public static LoginResponse getRootAsLoginResponse(ByteBuffer _bb, LoginResponse obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public LoginResponse __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public String username() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } @@ -20,16 +21,23 @@ public final class LoginResponse extends Table { public static int createLoginResponse(FlatBufferBuilder builder, int usernameOffset) { - builder.startObject(1); + builder.startTable(1); LoginResponse.addUsername(builder, usernameOffset); return LoginResponse.endLoginResponse(builder); } - public static void startLoginResponse(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startLoginResponse(FlatBufferBuilder builder) { builder.startTable(1); } public static void addUsername(FlatBufferBuilder builder, int usernameOffset) { builder.addOffset(0, usernameOffset, 0); } public static int endLoginResponse(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 LoginResponse get(int j) { return get(new LoginResponse(), j); } + public LoginResponse get(LoginResponse obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bnls/QueryRealms.java b/core/gen/main/java/com/riiablo/net/packet/bnls/QueryRealms.java index 238992b3..3af72f07 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bnls/QueryRealms.java +++ b/core/gen/main/java/com/riiablo/net/packet/bnls/QueryRealms.java @@ -9,29 +9,39 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class QueryRealms extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static QueryRealms getRootAsQueryRealms(ByteBuffer _bb) { return getRootAsQueryRealms(_bb, new QueryRealms()); } public static QueryRealms getRootAsQueryRealms(ByteBuffer _bb, QueryRealms obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public QueryRealms __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public Realm realms(int j) { return realms(new Realm(), j); } - public Realm realms(Realm obj, int j) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } + public com.riiablo.net.packet.bnls.Realm realms(int j) { return realms(new com.riiablo.net.packet.bnls.Realm(), j); } + public com.riiablo.net.packet.bnls.Realm realms(com.riiablo.net.packet.bnls.Realm obj, int j) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } public int realmsLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; } + public com.riiablo.net.packet.bnls.Realm.Vector realmsVector() { return realmsVector(new com.riiablo.net.packet.bnls.Realm.Vector()); } + public com.riiablo.net.packet.bnls.Realm.Vector realmsVector(com.riiablo.net.packet.bnls.Realm.Vector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } public static int createQueryRealms(FlatBufferBuilder builder, int realmsOffset) { - builder.startObject(1); + builder.startTable(1); QueryRealms.addRealms(builder, realmsOffset); return QueryRealms.endQueryRealms(builder); } - public static void startQueryRealms(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startQueryRealms(FlatBufferBuilder builder) { builder.startTable(1); } public static void addRealms(FlatBufferBuilder builder, int realmsOffset) { builder.addOffset(0, realmsOffset, 0); } public static int createRealmsVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } public static void startRealmsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } public static int endQueryRealms(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 QueryRealms get(int j) { return get(new QueryRealms(), j); } + public QueryRealms get(QueryRealms obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/bnls/Realm.java b/core/gen/main/java/com/riiablo/net/packet/bnls/Realm.java index 40e1fea5..61df65e3 100644 --- a/core/gen/main/java/com/riiablo/net/packet/bnls/Realm.java +++ b/core/gen/main/java/com/riiablo/net/packet/bnls/Realm.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Realm extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Realm getRootAsRealm(ByteBuffer _bb) { return getRootAsRealm(_bb, new Realm()); } public static Realm getRootAsRealm(ByteBuffer _bb, Realm obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Realm __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public String name() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } @@ -24,18 +25,25 @@ public final class Realm extends Table { public static int createRealm(FlatBufferBuilder builder, int nameOffset, int descOffset) { - builder.startObject(2); + builder.startTable(2); Realm.addDesc(builder, descOffset); Realm.addName(builder, nameOffset); return Realm.endRealm(builder); } - public static void startRealm(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startRealm(FlatBufferBuilder builder) { builder.startTable(2); } public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(0, nameOffset, 0); } public static void addDesc(FlatBufferBuilder builder, int descOffset) { builder.addOffset(1, descOffset, 0); } public static int endRealm(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Realm get(int j) { return get(new Realm(), j); } + public Realm get(Realm obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/AngleP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/AngleP.java index 41f58054..6c684b72 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/AngleP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/AngleP.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class AngleP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static AngleP getRootAsAngleP(ByteBuffer _bb) { return getRootAsAngleP(_bb, new AngleP()); } public static AngleP getRootAsAngleP(ByteBuffer _bb, AngleP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public AngleP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public float x() { int o = __offset(4); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; } @@ -20,18 +21,25 @@ public final class AngleP extends Table { public static int createAngleP(FlatBufferBuilder builder, float x, float y) { - builder.startObject(2); + builder.startTable(2); AngleP.addY(builder, y); AngleP.addX(builder, x); return AngleP.endAngleP(builder); } - public static void startAngleP(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startAngleP(FlatBufferBuilder builder) { builder.startTable(2); } public static void addX(FlatBufferBuilder builder, float x) { builder.addFloat(0, x, 0.0f); } public static void addY(FlatBufferBuilder builder, float y) { builder.addFloat(1, y, 0.0f); } public static int endAngleP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 AngleP get(int j) { return get(new AngleP(), j); } + public AngleP get(AngleP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/BeltToCursor.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/BeltToCursor.java index 1a08156c..a8780390 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/BeltToCursor.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/BeltToCursor.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class BeltToCursor extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static BeltToCursor getRootAsBeltToCursor(ByteBuffer _bb) { return getRootAsBeltToCursor(_bb, new BeltToCursor()); } public static BeltToCursor getRootAsBeltToCursor(ByteBuffer _bb, BeltToCursor obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public BeltToCursor __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int itemId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public static int createBeltToCursor(FlatBufferBuilder builder, int itemId) { - builder.startObject(1); + builder.startTable(1); BeltToCursor.addItemId(builder, itemId); return BeltToCursor.endBeltToCursor(builder); } - public static void startBeltToCursor(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startBeltToCursor(FlatBufferBuilder builder) { builder.startTable(1); } public static void addItemId(FlatBufferBuilder builder, int itemId) { builder.addInt(0, itemId, 0); } public static int endBeltToCursor(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 BeltToCursor get(int j) { return get(new BeltToCursor(), j); } + public BeltToCursor get(BeltToCursor obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/BodyToCursor.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/BodyToCursor.java index 94696330..b34549c5 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/BodyToCursor.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/BodyToCursor.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class BodyToCursor extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static BodyToCursor getRootAsBodyToCursor(ByteBuffer _bb) { return getRootAsBodyToCursor(_bb, new BodyToCursor()); } public static BodyToCursor getRootAsBodyToCursor(ByteBuffer _bb, BodyToCursor obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public BodyToCursor __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int bodyLoc() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -20,18 +21,25 @@ public final class BodyToCursor extends Table { public static int createBodyToCursor(FlatBufferBuilder builder, int bodyLoc, boolean merc) { - builder.startObject(2); + builder.startTable(2); BodyToCursor.addBodyLoc(builder, bodyLoc); BodyToCursor.addMerc(builder, merc); return BodyToCursor.endBodyToCursor(builder); } - public static void startBodyToCursor(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startBodyToCursor(FlatBufferBuilder builder) { builder.startTable(2); } public static void addBodyLoc(FlatBufferBuilder builder, int bodyLoc) { builder.addInt(0, bodyLoc, 0); } public static void addMerc(FlatBufferBuilder builder, boolean merc) { builder.addBoolean(1, merc, false); } public static int endBodyToCursor(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 BodyToCursor get(int j) { return get(new BodyToCursor(), j); } + public BodyToCursor get(BodyToCursor obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/ClassP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/ClassP.java index 7ebb0d09..5ee9c149 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/ClassP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/ClassP.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ClassP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ClassP getRootAsClassP(ByteBuffer _bb) { return getRootAsClassP(_bb, new ClassP()); } public static ClassP getRootAsClassP(ByteBuffer _bb, ClassP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ClassP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int type() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } public static int createClassP(FlatBufferBuilder builder, int type) { - builder.startObject(1); + builder.startTable(1); ClassP.addType(builder, type); return ClassP.endClassP(builder); } - public static void startClassP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startClassP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addType(FlatBufferBuilder builder, int type) { builder.addByte(0, (byte)type, (byte)0); } public static int endClassP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ClassP get(int j) { return get(new ClassP(), j); } + public ClassP get(ClassP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CofAlphasP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CofAlphasP.java index 4e29d69f..18572afc 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CofAlphasP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CofAlphasP.java @@ -9,30 +9,41 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CofAlphasP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CofAlphasP getRootAsCofAlphasP(ByteBuffer _bb) { return getRootAsCofAlphasP(_bb, new CofAlphasP()); } public static CofAlphasP getRootAsCofAlphasP(ByteBuffer _bb, CofAlphasP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CofAlphasP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int alpha(int j) { int o = __offset(4); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int alphaLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; } + public ByteVector alphaVector() { return alphaVector(new ByteVector()); } + public ByteVector alphaVector(ByteVector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer alphaAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } public ByteBuffer alphaInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } public static int createCofAlphasP(FlatBufferBuilder builder, int alphaOffset) { - builder.startObject(1); + builder.startTable(1); CofAlphasP.addAlpha(builder, alphaOffset); return CofAlphasP.endCofAlphasP(builder); } - public static void startCofAlphasP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startCofAlphasP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addAlpha(FlatBufferBuilder builder, int alphaOffset) { builder.addOffset(0, alphaOffset, 0); } - public static int createAlphaVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createAlphaVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createAlphaVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startAlphaVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static int endCofAlphasP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CofAlphasP get(int j) { return get(new CofAlphasP(), j); } + public CofAlphasP get(CofAlphasP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CofComponentsP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CofComponentsP.java index 838bcabd..dea67a18 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CofComponentsP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CofComponentsP.java @@ -9,30 +9,41 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CofComponentsP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CofComponentsP getRootAsCofComponentsP(ByteBuffer _bb) { return getRootAsCofComponentsP(_bb, new CofComponentsP()); } public static CofComponentsP getRootAsCofComponentsP(ByteBuffer _bb, CofComponentsP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CofComponentsP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int component(int j) { int o = __offset(4); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int componentLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; } + public ByteVector componentVector() { return componentVector(new ByteVector()); } + public ByteVector componentVector(ByteVector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer componentAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } public ByteBuffer componentInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } public static int createCofComponentsP(FlatBufferBuilder builder, int componentOffset) { - builder.startObject(1); + builder.startTable(1); CofComponentsP.addComponent(builder, componentOffset); return CofComponentsP.endCofComponentsP(builder); } - public static void startCofComponentsP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startCofComponentsP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addComponent(FlatBufferBuilder builder, int componentOffset) { builder.addOffset(0, componentOffset, 0); } - public static int createComponentVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createComponentVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createComponentVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startComponentVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static int endCofComponentsP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CofComponentsP get(int j) { return get(new CofComponentsP(), j); } + public CofComponentsP get(CofComponentsP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CofTransformsP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CofTransformsP.java index 0b917389..1b8315b3 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CofTransformsP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CofTransformsP.java @@ -9,30 +9,41 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CofTransformsP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CofTransformsP getRootAsCofTransformsP(ByteBuffer _bb) { return getRootAsCofTransformsP(_bb, new CofTransformsP()); } public static CofTransformsP getRootAsCofTransformsP(ByteBuffer _bb, CofTransformsP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CofTransformsP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int transform(int j) { int o = __offset(4); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int transformLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; } + public ByteVector transformVector() { return transformVector(new ByteVector()); } + public ByteVector transformVector(ByteVector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer transformAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } public ByteBuffer transformInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } public static int createCofTransformsP(FlatBufferBuilder builder, int transformOffset) { - builder.startObject(1); + builder.startTable(1); CofTransformsP.addTransform(builder, transformOffset); return CofTransformsP.endCofTransformsP(builder); } - public static void startCofTransformsP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startCofTransformsP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addTransform(FlatBufferBuilder builder, int transformOffset) { builder.addOffset(0, transformOffset, 0); } - public static int createTransformVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createTransformVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createTransformVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startTransformVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static int endCofTransformsP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CofTransformsP get(int j) { return get(new CofTransformsP(), j); } + public CofTransformsP get(CofTransformsP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/Connection.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/Connection.java index 97bd0213..c7645510 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/Connection.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/Connection.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Connection extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Connection getRootAsConnection(ByteBuffer _bb) { return getRootAsConnection(_bb, new Connection()); } public static Connection getRootAsConnection(ByteBuffer _bb, Connection obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Connection __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int charClass() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } @@ -20,18 +21,26 @@ public final class Connection extends Table { public ByteBuffer charNameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); } public int cofComponents(int j) { int o = __offset(8); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int cofComponentsLength() { int o = __offset(8); return o != 0 ? __vector_len(o) : 0; } + public ByteVector cofComponentsVector() { return cofComponentsVector(new ByteVector()); } + public ByteVector cofComponentsVector(ByteVector obj) { int o = __offset(8); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer cofComponentsAsByteBuffer() { return __vector_as_bytebuffer(8, 1); } public ByteBuffer cofComponentsInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 8, 1); } public int cofTransforms(int j) { int o = __offset(10); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int cofTransformsLength() { int o = __offset(10); return o != 0 ? __vector_len(o) : 0; } + public ByteVector cofTransformsVector() { return cofTransformsVector(new ByteVector()); } + public ByteVector cofTransformsVector(ByteVector obj) { int o = __offset(10); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer cofTransformsAsByteBuffer() { return __vector_as_bytebuffer(10, 1); } public ByteBuffer cofTransformsInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 10, 1); } public int cofAlphas(int j) { int o = __offset(12); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int cofAlphasLength() { int o = __offset(12); return o != 0 ? __vector_len(o) : 0; } + public ByteVector cofAlphasVector() { return cofAlphasVector(new ByteVector()); } + public ByteVector cofAlphasVector(ByteVector obj) { int o = __offset(12); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer cofAlphasAsByteBuffer() { return __vector_as_bytebuffer(12, 1); } public ByteBuffer cofAlphasInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 12, 1); } public int d2s(int j) { int o = __offset(14); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int d2sLength() { int o = __offset(14); return o != 0 ? __vector_len(o) : 0; } + public ByteVector d2sVector() { return d2sVector(new ByteVector()); } + public ByteVector d2sVector(ByteVector obj) { int o = __offset(14); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer d2sAsByteBuffer() { return __vector_as_bytebuffer(14, 1); } public ByteBuffer d2sInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 14, 1); } public int entityId() { int o = __offset(16); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -44,7 +53,7 @@ public final class Connection extends Table { int cofAlphasOffset, int d2sOffset, int entityId) { - builder.startObject(7); + builder.startTable(7); Connection.addEntityId(builder, entityId); Connection.addD2s(builder, d2sOffset); Connection.addCofAlphas(builder, cofAlphasOffset); @@ -55,25 +64,36 @@ public final class Connection extends Table { return Connection.endConnection(builder); } - public static void startConnection(FlatBufferBuilder builder) { builder.startObject(7); } + public static void startConnection(FlatBufferBuilder builder) { builder.startTable(7); } public static void addCharClass(FlatBufferBuilder builder, int charClass) { builder.addByte(0, (byte)charClass, (byte)0); } public static void addCharName(FlatBufferBuilder builder, int charNameOffset) { builder.addOffset(1, charNameOffset, 0); } public static void addCofComponents(FlatBufferBuilder builder, int cofComponentsOffset) { builder.addOffset(2, cofComponentsOffset, 0); } - public static int createCofComponentsVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createCofComponentsVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createCofComponentsVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startCofComponentsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static void addCofTransforms(FlatBufferBuilder builder, int cofTransformsOffset) { builder.addOffset(3, cofTransformsOffset, 0); } - public static int createCofTransformsVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createCofTransformsVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createCofTransformsVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startCofTransformsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static void addCofAlphas(FlatBufferBuilder builder, int cofAlphasOffset) { builder.addOffset(4, cofAlphasOffset, 0); } - public static int createCofAlphasVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createCofAlphasVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createCofAlphasVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startCofAlphasVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static void addD2s(FlatBufferBuilder builder, int d2sOffset) { builder.addOffset(5, d2sOffset, 0); } - public static int createD2sVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createD2sVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createD2sVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startD2sVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static void addEntityId(FlatBufferBuilder builder, int entityId) { builder.addInt(6, entityId, 0); } public static int endConnection(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Connection get(int j) { return get(new Connection(), j); } + public Connection get(Connection obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBelt.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBelt.java index 9538d949..720458d3 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBelt.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBelt.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CursorToBelt extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CursorToBelt getRootAsCursorToBelt(ByteBuffer _bb) { return getRootAsCursorToBelt(_bb, new CursorToBelt()); } public static CursorToBelt getRootAsCursorToBelt(ByteBuffer _bb, CursorToBelt obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CursorToBelt __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int x() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -20,18 +21,25 @@ public final class CursorToBelt extends Table { public static int createCursorToBelt(FlatBufferBuilder builder, int x, int y) { - builder.startObject(2); + builder.startTable(2); CursorToBelt.addY(builder, y); CursorToBelt.addX(builder, x); return CursorToBelt.endCursorToBelt(builder); } - public static void startCursorToBelt(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startCursorToBelt(FlatBufferBuilder builder) { builder.startTable(2); } public static void addX(FlatBufferBuilder builder, int x) { builder.addInt(0, x, 0); } public static void addY(FlatBufferBuilder builder, int y) { builder.addInt(1, y, 0); } public static int endCursorToBelt(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CursorToBelt get(int j) { return get(new CursorToBelt(), j); } + public CursorToBelt get(CursorToBelt obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBody.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBody.java index a3de5f82..78f12690 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBody.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToBody.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CursorToBody extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CursorToBody getRootAsCursorToBody(ByteBuffer _bb) { return getRootAsCursorToBody(_bb, new CursorToBody()); } public static CursorToBody getRootAsCursorToBody(ByteBuffer _bb, CursorToBody obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CursorToBody __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int bodyLoc() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -20,18 +21,25 @@ public final class CursorToBody extends Table { public static int createCursorToBody(FlatBufferBuilder builder, int bodyLoc, boolean merc) { - builder.startObject(2); + builder.startTable(2); CursorToBody.addBodyLoc(builder, bodyLoc); CursorToBody.addMerc(builder, merc); return CursorToBody.endCursorToBody(builder); } - public static void startCursorToBody(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startCursorToBody(FlatBufferBuilder builder) { builder.startTable(2); } public static void addBodyLoc(FlatBufferBuilder builder, int bodyLoc) { builder.addInt(0, bodyLoc, 0); } public static void addMerc(FlatBufferBuilder builder, boolean merc) { builder.addBoolean(1, merc, false); } public static int endCursorToBody(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CursorToBody get(int j) { return get(new CursorToBody(), j); } + public CursorToBody get(CursorToBody obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToGround.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToGround.java index 57b1f7eb..838c9ec1 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToGround.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToGround.java @@ -9,16 +9,24 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CursorToGround extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CursorToGround getRootAsCursorToGround(ByteBuffer _bb) { return getRootAsCursorToGround(_bb, new CursorToGround()); } public static CursorToGround getRootAsCursorToGround(ByteBuffer _bb, CursorToGround obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CursorToGround __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public static void startCursorToGround(FlatBufferBuilder builder) { builder.startObject(0); } + public static void startCursorToGround(FlatBufferBuilder builder) { builder.startTable(0); } public static int endCursorToGround(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CursorToGround get(int j) { return get(new CursorToGround(), j); } + public CursorToGround get(CursorToGround obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToStore.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToStore.java index 04fd08ac..83915d6c 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToStore.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/CursorToStore.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CursorToStore extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CursorToStore getRootAsCursorToStore(ByteBuffer _bb) { return getRootAsCursorToStore(_bb, new CursorToStore()); } public static CursorToStore getRootAsCursorToStore(ByteBuffer _bb, CursorToStore obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CursorToStore __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int storeLoc() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -22,20 +23,27 @@ public final class CursorToStore extends Table { int storeLoc, int x, int y) { - builder.startObject(3); + builder.startTable(3); CursorToStore.addY(builder, y); CursorToStore.addX(builder, x); CursorToStore.addStoreLoc(builder, storeLoc); return CursorToStore.endCursorToStore(builder); } - public static void startCursorToStore(FlatBufferBuilder builder) { builder.startObject(3); } + public static void startCursorToStore(FlatBufferBuilder builder) { builder.startTable(3); } public static void addStoreLoc(FlatBufferBuilder builder, int storeLoc) { builder.addInt(0, storeLoc, 0); } public static void addX(FlatBufferBuilder builder, int x) { builder.addInt(1, x, 0); } public static void addY(FlatBufferBuilder builder, int y) { builder.addInt(2, y, 0); } public static int endCursorToStore(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CursorToStore get(int j) { return get(new CursorToStore(), j); } + public CursorToStore get(CursorToStore obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/D2GS.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/D2GS.java index 6a78c4a5..36930382 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/D2GS.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/D2GS.java @@ -9,31 +9,39 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class D2GS extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static D2GS getRootAsD2GS(ByteBuffer _bb) { return getRootAsD2GS(_bb, new D2GS()); } public static D2GS getRootAsD2GS(ByteBuffer _bb, D2GS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public D2GS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte dataType() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 0; } - public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o) : null; } + public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o + bb_pos) : null; } public static int createD2GS(FlatBufferBuilder builder, byte data_type, int dataOffset) { - builder.startObject(2); + builder.startTable(2); D2GS.addData(builder, dataOffset); D2GS.addDataType(builder, data_type); return D2GS.endD2GS(builder); } - public static void startD2GS(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startD2GS(FlatBufferBuilder builder) { builder.startTable(2); } public static void addDataType(FlatBufferBuilder builder, byte dataType) { builder.addByte(0, dataType, 0); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(1, dataOffset, 0); } public static int endD2GS(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } public static void finishD2GSBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } public static void finishSizePrefixedD2GSBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(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 D2GS get(int j) { return get(new D2GS(), j); } + public D2GS get(D2GS obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/DS1ObjectWrapperP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/DS1ObjectWrapperP.java index 18060f3b..22620b72 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/DS1ObjectWrapperP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/DS1ObjectWrapperP.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class DS1ObjectWrapperP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static DS1ObjectWrapperP getRootAsDS1ObjectWrapperP(ByteBuffer _bb) { return getRootAsDS1ObjectWrapperP(_bb, new DS1ObjectWrapperP()); } public static DS1ObjectWrapperP getRootAsDS1ObjectWrapperP(ByteBuffer _bb, DS1ObjectWrapperP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public DS1ObjectWrapperP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int act() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } @@ -22,20 +23,27 @@ public final class DS1ObjectWrapperP extends Table { int act, int type, int id) { - builder.startObject(3); + builder.startTable(3); DS1ObjectWrapperP.addId(builder, id); DS1ObjectWrapperP.addType(builder, type); DS1ObjectWrapperP.addAct(builder, act); return DS1ObjectWrapperP.endDS1ObjectWrapperP(builder); } - public static void startDS1ObjectWrapperP(FlatBufferBuilder builder) { builder.startObject(3); } + public static void startDS1ObjectWrapperP(FlatBufferBuilder builder) { builder.startTable(3); } public static void addAct(FlatBufferBuilder builder, int act) { builder.addByte(0, (byte)act, (byte)0); } public static void addType(FlatBufferBuilder builder, int type) { builder.addByte(1, (byte)type, (byte)0); } public static void addId(FlatBufferBuilder builder, int id) { builder.addByte(2, (byte)id, (byte)0); } public static int endDS1ObjectWrapperP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 DS1ObjectWrapperP get(int j) { return get(new DS1ObjectWrapperP(), j); } + public DS1ObjectWrapperP get(DS1ObjectWrapperP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/Disconnect.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/Disconnect.java index 823af591..d53107c9 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/Disconnect.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/Disconnect.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Disconnect extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Disconnect getRootAsDisconnect(ByteBuffer _bb) { return getRootAsDisconnect(_bb, new Disconnect()); } public static Disconnect getRootAsDisconnect(ByteBuffer _bb, Disconnect obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Disconnect __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int entityId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public static int createDisconnect(FlatBufferBuilder builder, int entityId) { - builder.startObject(1); + builder.startTable(1); Disconnect.addEntityId(builder, entityId); return Disconnect.endDisconnect(builder); } - public static void startDisconnect(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startDisconnect(FlatBufferBuilder builder) { builder.startTable(1); } public static void addEntityId(FlatBufferBuilder builder, int entityId) { builder.addInt(0, entityId, 0); } public static int endDisconnect(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Disconnect get(int j) { return get(new Disconnect(), j); } + public Disconnect get(Disconnect obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/EntitySync.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/EntitySync.java index df77be60..cf758993 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/EntitySync.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/EntitySync.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class EntitySync extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static EntitySync getRootAsEntitySync(ByteBuffer _bb) { return getRootAsEntitySync(_bb, new EntitySync()); } public static EntitySync getRootAsEntitySync(ByteBuffer _bb, EntitySync obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public EntitySync __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int entityId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -19,10 +20,14 @@ public final class EntitySync extends Table { public int flags() { int o = __offset(8); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } public byte componentType(int j) { int o = __offset(10); return o != 0 ? bb.get(__vector(o) + j * 1) : 0; } public int componentTypeLength() { int o = __offset(10); return o != 0 ? __vector_len(o) : 0; } + public ByteVector componentTypeVector() { return componentTypeVector(new ByteVector()); } + public ByteVector componentTypeVector(ByteVector obj) { int o = __offset(10); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer componentTypeAsByteBuffer() { return __vector_as_bytebuffer(10, 1); } public ByteBuffer componentTypeInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 10, 1); } - public Table component(Table obj, int j) { int o = __offset(12); return o != 0 ? __union(obj, __vector(o) + j * 4 - bb_pos) : null; } + public Table component(Table obj, int j) { int o = __offset(12); return o != 0 ? __union(obj, __vector(o) + j * 4) : null; } public int componentLength() { int o = __offset(12); return o != 0 ? __vector_len(o) : 0; } + public UnionVector componentVector() { return componentVector(new UnionVector()); } + public UnionVector componentVector(UnionVector obj) { int o = __offset(12); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } public static int createEntitySync(FlatBufferBuilder builder, int entityId, @@ -30,7 +35,7 @@ public final class EntitySync extends Table { int flags, int component_typeOffset, int componentOffset) { - builder.startObject(5); + builder.startTable(5); EntitySync.addComponent(builder, componentOffset); EntitySync.addComponentType(builder, component_typeOffset); EntitySync.addEntityId(builder, entityId); @@ -39,7 +44,7 @@ public final class EntitySync extends Table { return EntitySync.endEntitySync(builder); } - public static void startEntitySync(FlatBufferBuilder builder) { builder.startObject(5); } + public static void startEntitySync(FlatBufferBuilder builder) { builder.startTable(5); } public static void addEntityId(FlatBufferBuilder builder, int entityId) { builder.addInt(0, entityId, 0); } public static void addType(FlatBufferBuilder builder, int type) { builder.addByte(1, (byte)type, (byte)0); } public static void addFlags(FlatBufferBuilder builder, int flags) { builder.addByte(2, (byte)flags, (byte)0); } @@ -50,8 +55,15 @@ public final class EntitySync extends Table { public static int createComponentVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } public static void startComponentVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } public static int endEntitySync(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 EntitySync get(int j) { return get(new EntitySync(), j); } + public EntitySync get(EntitySync obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/GroundToCursor.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/GroundToCursor.java index 6f696404..55373f07 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/GroundToCursor.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/GroundToCursor.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class GroundToCursor extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static GroundToCursor getRootAsGroundToCursor(ByteBuffer _bb) { return getRootAsGroundToCursor(_bb, new GroundToCursor()); } public static GroundToCursor getRootAsGroundToCursor(ByteBuffer _bb, GroundToCursor obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public GroundToCursor __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int itemId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public static int createGroundToCursor(FlatBufferBuilder builder, int itemId) { - builder.startObject(1); + builder.startTable(1); GroundToCursor.addItemId(builder, itemId); return GroundToCursor.endGroundToCursor(builder); } - public static void startGroundToCursor(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startGroundToCursor(FlatBufferBuilder builder) { builder.startTable(1); } public static void addItemId(FlatBufferBuilder builder, int itemId) { builder.addInt(0, itemId, 0); } public static int endGroundToCursor(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 GroundToCursor get(int j) { return get(new GroundToCursor(), j); } + public GroundToCursor get(GroundToCursor obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/ItemP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/ItemP.java index e018c18b..76f11217 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/ItemP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/ItemP.java @@ -9,30 +9,41 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ItemP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ItemP getRootAsItemP(ByteBuffer _bb) { return getRootAsItemP(_bb, new ItemP()); } public static ItemP getRootAsItemP(ByteBuffer _bb, ItemP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ItemP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int data(int j) { int o = __offset(4); return o != 0 ? bb.get(__vector(o) + j * 1) & 0xFF : 0; } public int dataLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; } + public ByteVector dataVector() { return dataVector(new ByteVector()); } + public ByteVector dataVector(ByteVector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), bb) : null; } public ByteBuffer dataAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } public ByteBuffer dataInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); } public static int createItemP(FlatBufferBuilder builder, int dataOffset) { - builder.startObject(1); + builder.startTable(1); ItemP.addData(builder, dataOffset); return ItemP.endItemP(builder); } - public static void startItemP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startItemP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(0, dataOffset, 0); } - public static int createDataVector(FlatBufferBuilder builder, byte[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]); return builder.endVector(); } + public static int createDataVector(FlatBufferBuilder builder, byte[] data) { return builder.createByteVector(data); } + public static int createDataVector(FlatBufferBuilder builder, ByteBuffer data) { return builder.createByteVector(data); } public static void startDataVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); } public static int endItemP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ItemP get(int j) { return get(new ItemP(), j); } + public ItemP get(ItemP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/MonsterP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/MonsterP.java index b944751e..b2628780 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/MonsterP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/MonsterP.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class MonsterP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static MonsterP getRootAsMonsterP(ByteBuffer _bb) { return getRootAsMonsterP(_bb, new MonsterP()); } public static MonsterP getRootAsMonsterP(ByteBuffer _bb, MonsterP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public MonsterP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int monsterId() { int o = __offset(4); return o != 0 ? bb.getShort(o + bb_pos) & 0xFFFF : 0; } public static int createMonsterP(FlatBufferBuilder builder, int monsterId) { - builder.startObject(1); + builder.startTable(1); MonsterP.addMonsterId(builder, monsterId); return MonsterP.endMonsterP(builder); } - public static void startMonsterP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startMonsterP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addMonsterId(FlatBufferBuilder builder, int monsterId) { builder.addShort(0, (short)monsterId, (short)0); } public static int endMonsterP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 MonsterP get(int j) { return get(new MonsterP(), j); } + public MonsterP get(MonsterP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/Ping.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/Ping.java index 84a94d11..a9ead468 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/Ping.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/Ping.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Ping extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Ping getRootAsPing(ByteBuffer _bb) { return getRootAsPing(_bb, new Ping()); } public static Ping getRootAsPing(ByteBuffer _bb, Ping obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Ping __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int tickCount() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -24,7 +25,7 @@ public final class Ping extends Table { long sendTime, long processTime, boolean ack) { - builder.startObject(4); + builder.startTable(4); Ping.addProcessTime(builder, processTime); Ping.addSendTime(builder, sendTime); Ping.addTickCount(builder, tickCount); @@ -32,14 +33,21 @@ public final class Ping extends Table { return Ping.endPing(builder); } - public static void startPing(FlatBufferBuilder builder) { builder.startObject(4); } + public static void startPing(FlatBufferBuilder builder) { builder.startTable(4); } public static void addTickCount(FlatBufferBuilder builder, int tickCount) { builder.addInt(0, tickCount, 0); } public static void addSendTime(FlatBufferBuilder builder, long sendTime) { builder.addLong(1, sendTime, 0L); } public static void addProcessTime(FlatBufferBuilder builder, long processTime) { builder.addLong(2, processTime, 0L); } public static void addAck(FlatBufferBuilder builder, boolean ack) { builder.addBoolean(3, ack, false); } public static int endPing(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Ping get(int j) { return get(new Ping(), j); } + public Ping get(Ping obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/PlayerP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/PlayerP.java index e3bb28e1..83fe910b 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/PlayerP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/PlayerP.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class PlayerP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static PlayerP getRootAsPlayerP(ByteBuffer _bb) { return getRootAsPlayerP(_bb, new PlayerP()); } public static PlayerP getRootAsPlayerP(ByteBuffer _bb, PlayerP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public PlayerP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int charClass() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } @@ -22,18 +23,25 @@ public final class PlayerP extends Table { public static int createPlayerP(FlatBufferBuilder builder, int charClass, int charNameOffset) { - builder.startObject(2); + builder.startTable(2); PlayerP.addCharName(builder, charNameOffset); PlayerP.addCharClass(builder, charClass); return PlayerP.endPlayerP(builder); } - public static void startPlayerP(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startPlayerP(FlatBufferBuilder builder) { builder.startTable(2); } public static void addCharClass(FlatBufferBuilder builder, int charClass) { builder.addByte(0, (byte)charClass, (byte)0); } public static void addCharName(FlatBufferBuilder builder, int charNameOffset) { builder.addOffset(1, charNameOffset, 0); } public static int endPlayerP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 PlayerP get(int j) { return get(new PlayerP(), j); } + public PlayerP get(PlayerP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/PositionP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/PositionP.java index 0a2184f1..7079e930 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/PositionP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/PositionP.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class PositionP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static PositionP getRootAsPositionP(ByteBuffer _bb) { return getRootAsPositionP(_bb, new PositionP()); } public static PositionP getRootAsPositionP(ByteBuffer _bb, PositionP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public PositionP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public float x() { int o = __offset(4); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; } @@ -20,18 +21,25 @@ public final class PositionP extends Table { public static int createPositionP(FlatBufferBuilder builder, float x, float y) { - builder.startObject(2); + builder.startTable(2); PositionP.addY(builder, y); PositionP.addX(builder, x); return PositionP.endPositionP(builder); } - public static void startPositionP(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startPositionP(FlatBufferBuilder builder) { builder.startTable(2); } public static void addX(FlatBufferBuilder builder, float x) { builder.addFloat(0, x, 0.0f); } public static void addY(FlatBufferBuilder builder, float y) { builder.addFloat(1, y, 0.0f); } public static int endPositionP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 PositionP get(int j) { return get(new PositionP(), j); } + public PositionP get(PositionP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToEntity.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToEntity.java index bc9b4b01..4fb4394d 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToEntity.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToEntity.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class RunToEntity extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static RunToEntity getRootAsRunToEntity(ByteBuffer _bb) { return getRootAsRunToEntity(_bb, new RunToEntity()); } public static RunToEntity getRootAsRunToEntity(ByteBuffer _bb, RunToEntity obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public RunToEntity __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int type() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } @@ -20,18 +21,25 @@ public final class RunToEntity extends Table { public static int createRunToEntity(FlatBufferBuilder builder, int type, int entityId) { - builder.startObject(2); + builder.startTable(2); RunToEntity.addEntityId(builder, entityId); RunToEntity.addType(builder, type); return RunToEntity.endRunToEntity(builder); } - public static void startRunToEntity(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startRunToEntity(FlatBufferBuilder builder) { builder.startTable(2); } public static void addType(FlatBufferBuilder builder, int type) { builder.addByte(0, (byte)type, (byte)0); } public static void addEntityId(FlatBufferBuilder builder, int entityId) { builder.addInt(1, entityId, 0); } public static int endRunToEntity(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 RunToEntity get(int j) { return get(new RunToEntity(), j); } + public RunToEntity get(RunToEntity obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToLocation.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToLocation.java index da7fb6df..acbd2f3e 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToLocation.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/RunToLocation.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class RunToLocation extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static RunToLocation getRootAsRunToLocation(ByteBuffer _bb) { return getRootAsRunToLocation(_bb, new RunToLocation()); } public static RunToLocation getRootAsRunToLocation(ByteBuffer _bb, RunToLocation obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public RunToLocation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public short x() { int o = __offset(4); return o != 0 ? bb.getShort(o + bb_pos) : 0; } @@ -20,18 +21,25 @@ public final class RunToLocation extends Table { public static int createRunToLocation(FlatBufferBuilder builder, short x, short y) { - builder.startObject(2); + builder.startTable(2); RunToLocation.addY(builder, y); RunToLocation.addX(builder, x); return RunToLocation.endRunToLocation(builder); } - public static void startRunToLocation(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startRunToLocation(FlatBufferBuilder builder) { builder.startTable(2); } public static void addX(FlatBufferBuilder builder, short x) { builder.addShort(0, x, 0); } public static void addY(FlatBufferBuilder builder, short y) { builder.addShort(1, y, 0); } public static int endRunToLocation(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 RunToLocation get(int j) { return get(new RunToLocation(), j); } + public RunToLocation get(RunToLocation obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/StoreToCursor.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/StoreToCursor.java index 03e9a357..bd4a4c5a 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/StoreToCursor.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/StoreToCursor.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class StoreToCursor extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static StoreToCursor getRootAsStoreToCursor(ByteBuffer _bb) { return getRootAsStoreToCursor(_bb, new StoreToCursor()); } public static StoreToCursor getRootAsStoreToCursor(ByteBuffer _bb, StoreToCursor obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public StoreToCursor __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int itemId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public static int createStoreToCursor(FlatBufferBuilder builder, int itemId) { - builder.startObject(1); + builder.startTable(1); StoreToCursor.addItemId(builder, itemId); return StoreToCursor.endStoreToCursor(builder); } - public static void startStoreToCursor(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startStoreToCursor(FlatBufferBuilder builder) { builder.startTable(1); } public static void addItemId(FlatBufferBuilder builder, int itemId) { builder.addInt(0, itemId, 0); } public static int endStoreToCursor(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 StoreToCursor get(int j) { return get(new StoreToCursor(), j); } + public StoreToCursor get(StoreToCursor obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBeltItem.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBeltItem.java index f8f2df91..1b6de897 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBeltItem.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBeltItem.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class SwapBeltItem extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static SwapBeltItem getRootAsSwapBeltItem(ByteBuffer _bb) { return getRootAsSwapBeltItem(_bb, new SwapBeltItem()); } public static SwapBeltItem getRootAsSwapBeltItem(ByteBuffer _bb, SwapBeltItem obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public SwapBeltItem __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int itemId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public static int createSwapBeltItem(FlatBufferBuilder builder, int itemId) { - builder.startObject(1); + builder.startTable(1); SwapBeltItem.addItemId(builder, itemId); return SwapBeltItem.endSwapBeltItem(builder); } - public static void startSwapBeltItem(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startSwapBeltItem(FlatBufferBuilder builder) { builder.startTable(1); } public static void addItemId(FlatBufferBuilder builder, int itemId) { builder.addInt(0, itemId, 0); } public static int endSwapBeltItem(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 SwapBeltItem get(int j) { return get(new SwapBeltItem(), j); } + public SwapBeltItem get(SwapBeltItem obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBodyItem.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBodyItem.java index 26401a61..f41e8999 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBodyItem.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapBodyItem.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class SwapBodyItem extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static SwapBodyItem getRootAsSwapBodyItem(ByteBuffer _bb) { return getRootAsSwapBodyItem(_bb, new SwapBodyItem()); } public static SwapBodyItem getRootAsSwapBodyItem(ByteBuffer _bb, SwapBodyItem obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public SwapBodyItem __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int bodyLoc() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -20,18 +21,25 @@ public final class SwapBodyItem extends Table { public static int createSwapBodyItem(FlatBufferBuilder builder, int bodyLoc, boolean merc) { - builder.startObject(2); + builder.startTable(2); SwapBodyItem.addBodyLoc(builder, bodyLoc); SwapBodyItem.addMerc(builder, merc); return SwapBodyItem.endSwapBodyItem(builder); } - public static void startSwapBodyItem(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startSwapBodyItem(FlatBufferBuilder builder) { builder.startTable(2); } public static void addBodyLoc(FlatBufferBuilder builder, int bodyLoc) { builder.addInt(0, bodyLoc, 0); } public static void addMerc(FlatBufferBuilder builder, boolean merc) { builder.addBoolean(1, merc, false); } public static int endSwapBodyItem(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 SwapBodyItem get(int j) { return get(new SwapBodyItem(), j); } + public SwapBodyItem get(SwapBodyItem obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapStoreItem.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapStoreItem.java index 510e701e..f50baeaa 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapStoreItem.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/SwapStoreItem.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class SwapStoreItem extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static SwapStoreItem getRootAsSwapStoreItem(ByteBuffer _bb) { return getRootAsSwapStoreItem(_bb, new SwapStoreItem()); } public static SwapStoreItem getRootAsSwapStoreItem(ByteBuffer _bb, SwapStoreItem obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public SwapStoreItem __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int itemId() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -24,7 +25,7 @@ public final class SwapStoreItem extends Table { int storeLoc, int x, int y) { - builder.startObject(4); + builder.startTable(4); SwapStoreItem.addY(builder, y); SwapStoreItem.addX(builder, x); SwapStoreItem.addStoreLoc(builder, storeLoc); @@ -32,14 +33,21 @@ public final class SwapStoreItem extends Table { return SwapStoreItem.endSwapStoreItem(builder); } - public static void startSwapStoreItem(FlatBufferBuilder builder) { builder.startObject(4); } + public static void startSwapStoreItem(FlatBufferBuilder builder) { builder.startTable(4); } public static void addItemId(FlatBufferBuilder builder, int itemId) { builder.addInt(0, itemId, 0); } public static void addStoreLoc(FlatBufferBuilder builder, int storeLoc) { builder.addInt(1, storeLoc, 0); } public static void addX(FlatBufferBuilder builder, int x) { builder.addInt(2, x, 0); } public static void addY(FlatBufferBuilder builder, int y) { builder.addInt(3, y, 0); } public static int endSwapStoreItem(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 SwapStoreItem get(int j) { return get(new SwapStoreItem(), j); } + public SwapStoreItem get(SwapStoreItem obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/VelocityP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/VelocityP.java index 787802b2..a112f4d0 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/VelocityP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/VelocityP.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class VelocityP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static VelocityP getRootAsVelocityP(ByteBuffer _bb) { return getRootAsVelocityP(_bb, new VelocityP()); } public static VelocityP getRootAsVelocityP(ByteBuffer _bb, VelocityP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public VelocityP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public float x() { int o = __offset(4); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; } @@ -20,18 +21,25 @@ public final class VelocityP extends Table { public static int createVelocityP(FlatBufferBuilder builder, float x, float y) { - builder.startObject(2); + builder.startTable(2); VelocityP.addY(builder, y); VelocityP.addX(builder, x); return VelocityP.endVelocityP(builder); } - public static void startVelocityP(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startVelocityP(FlatBufferBuilder builder) { builder.startTable(2); } public static void addX(FlatBufferBuilder builder, float x) { builder.addFloat(0, x, 0.0f); } public static void addY(FlatBufferBuilder builder, float y) { builder.addFloat(1, y, 0.0f); } public static int endVelocityP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 VelocityP get(int j) { return get(new VelocityP(), j); } + public VelocityP get(VelocityP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToEntity.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToEntity.java index d9c6559e..4c539409 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToEntity.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToEntity.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class WalkToEntity extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static WalkToEntity getRootAsWalkToEntity(ByteBuffer _bb) { return getRootAsWalkToEntity(_bb, new WalkToEntity()); } public static WalkToEntity getRootAsWalkToEntity(ByteBuffer _bb, WalkToEntity obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public WalkToEntity __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int type() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; } @@ -20,18 +21,25 @@ public final class WalkToEntity extends Table { public static int createWalkToEntity(FlatBufferBuilder builder, int type, int entityId) { - builder.startObject(2); + builder.startTable(2); WalkToEntity.addEntityId(builder, entityId); WalkToEntity.addType(builder, type); return WalkToEntity.endWalkToEntity(builder); } - public static void startWalkToEntity(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startWalkToEntity(FlatBufferBuilder builder) { builder.startTable(2); } public static void addType(FlatBufferBuilder builder, int type) { builder.addByte(0, (byte)type, (byte)0); } public static void addEntityId(FlatBufferBuilder builder, int entityId) { builder.addInt(1, entityId, 0); } public static int endWalkToEntity(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 WalkToEntity get(int j) { return get(new WalkToEntity(), j); } + public WalkToEntity get(WalkToEntity obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToLocation.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToLocation.java index 81afe958..165baa26 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToLocation.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/WalkToLocation.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class WalkToLocation extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static WalkToLocation getRootAsWalkToLocation(ByteBuffer _bb) { return getRootAsWalkToLocation(_bb, new WalkToLocation()); } public static WalkToLocation getRootAsWalkToLocation(ByteBuffer _bb, WalkToLocation obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public WalkToLocation __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public short x() { int o = __offset(4); return o != 0 ? bb.getShort(o + bb_pos) : 0; } @@ -20,18 +21,25 @@ public final class WalkToLocation extends Table { public static int createWalkToLocation(FlatBufferBuilder builder, short x, short y) { - builder.startObject(2); + builder.startTable(2); WalkToLocation.addY(builder, y); WalkToLocation.addX(builder, x); return WalkToLocation.endWalkToLocation(builder); } - public static void startWalkToLocation(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startWalkToLocation(FlatBufferBuilder builder) { builder.startTable(2); } public static void addX(FlatBufferBuilder builder, short x) { builder.addShort(0, x, 0); } public static void addY(FlatBufferBuilder builder, short y) { builder.addShort(1, y, 0); } public static int endWalkToLocation(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 WalkToLocation get(int j) { return get(new WalkToLocation(), j); } + public WalkToLocation get(WalkToLocation obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/d2gs/WarpP.java b/core/gen/main/java/com/riiablo/net/packet/d2gs/WarpP.java index 69f6f6fc..af97df5c 100644 --- a/core/gen/main/java/com/riiablo/net/packet/d2gs/WarpP.java +++ b/core/gen/main/java/com/riiablo/net/packet/d2gs/WarpP.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class WarpP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static WarpP getRootAsWarpP(ByteBuffer _bb) { return getRootAsWarpP(_bb, new WarpP()); } public static WarpP getRootAsWarpP(ByteBuffer _bb, WarpP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public WarpP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int index() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public static int createWarpP(FlatBufferBuilder builder, int index) { - builder.startObject(1); + builder.startTable(1); WarpP.addIndex(builder, index); return WarpP.endWarpP(builder); } - public static void startWarpP(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startWarpP(FlatBufferBuilder builder) { builder.startTable(1); } public static void addIndex(FlatBufferBuilder builder, int index) { builder.addInt(0, index, 0); } public static int endWarpP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 WarpP get(int j) { return get(new WarpP(), j); } + public WarpP get(WarpP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionAccepted.java b/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionAccepted.java index c0cfd9e7..bc2c063f 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionAccepted.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionAccepted.java @@ -9,16 +9,24 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ConnectionAccepted extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ConnectionAccepted getRootAsConnectionAccepted(ByteBuffer _bb) { return getRootAsConnectionAccepted(_bb, new ConnectionAccepted()); } public static ConnectionAccepted getRootAsConnectionAccepted(ByteBuffer _bb, ConnectionAccepted obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ConnectionAccepted __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public static void startConnectionAccepted(FlatBufferBuilder builder) { builder.startObject(0); } + public static void startConnectionAccepted(FlatBufferBuilder builder) { builder.startTable(0); } public static int endConnectionAccepted(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ConnectionAccepted get(int j) { return get(new ConnectionAccepted(), j); } + public ConnectionAccepted get(ConnectionAccepted obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionClosed.java b/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionClosed.java index 62b57571..fe0468bf 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionClosed.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/ConnectionClosed.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ConnectionClosed extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ConnectionClosed getRootAsConnectionClosed(ByteBuffer _bb) { return getRootAsConnectionClosed(_bb, new ConnectionClosed()); } public static ConnectionClosed getRootAsConnectionClosed(ByteBuffer _bb, ConnectionClosed obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ConnectionClosed __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public String reason() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } @@ -20,16 +21,23 @@ public final class ConnectionClosed extends Table { public static int createConnectionClosed(FlatBufferBuilder builder, int reasonOffset) { - builder.startObject(1); + builder.startTable(1); ConnectionClosed.addReason(builder, reasonOffset); return ConnectionClosed.endConnectionClosed(builder); } - public static void startConnectionClosed(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startConnectionClosed(FlatBufferBuilder builder) { builder.startTable(1); } public static void addReason(FlatBufferBuilder builder, int reasonOffset) { builder.addOffset(0, reasonOffset, 0); } public static int endConnectionClosed(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ConnectionClosed get(int j) { return get(new ConnectionClosed(), j); } + public ConnectionClosed get(ConnectionClosed obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/CreateGame.java b/core/gen/main/java/com/riiablo/net/packet/mcp/CreateGame.java index 14075cc7..3345735e 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/CreateGame.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/CreateGame.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class CreateGame extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static CreateGame getRootAsCreateGame(ByteBuffer _bb) { return getRootAsCreateGame(_bb, new CreateGame()); } public static CreateGame getRootAsCreateGame(ByteBuffer _bb, CreateGame obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public CreateGame __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int diff() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } @@ -38,7 +39,7 @@ public final class CreateGame extends Table { int descriptionOffset, int gameToken, int result) { - builder.startObject(8); + builder.startTable(8); CreateGame.addResult(builder, result); CreateGame.addGameToken(builder, gameToken); CreateGame.addDescription(builder, descriptionOffset); @@ -50,7 +51,7 @@ public final class CreateGame extends Table { return CreateGame.endCreateGame(builder); } - public static void startCreateGame(FlatBufferBuilder builder) { builder.startObject(8); } + public static void startCreateGame(FlatBufferBuilder builder) { builder.startTable(8); } public static void addDiff(FlatBufferBuilder builder, int diff) { builder.addInt(0, diff, 0); } public static void addLevelDifference(FlatBufferBuilder builder, int levelDifference) { builder.addInt(1, levelDifference, 0); } public static void addMaxPlayers(FlatBufferBuilder builder, int maxPlayers) { builder.addInt(2, maxPlayers, 0); } @@ -60,8 +61,15 @@ public final class CreateGame extends Table { public static void addGameToken(FlatBufferBuilder builder, int gameToken) { builder.addInt(6, gameToken, 0); } public static void addResult(FlatBufferBuilder builder, int result) { builder.addInt(7, result, 0); } public static int endCreateGame(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 CreateGame get(int j) { return get(new CreateGame(), j); } + public CreateGame get(CreateGame obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/GameSession.java b/core/gen/main/java/com/riiablo/net/packet/mcp/GameSession.java index b13b20e9..e5b395b5 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/GameSession.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/GameSession.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class GameSession extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static GameSession getRootAsGameSession(ByteBuffer _bb) { return getRootAsGameSession(_bb, new GameSession()); } public static GameSession getRootAsGameSession(ByteBuffer _bb, GameSession obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public GameSession __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long index() { int o = __offset(4); return o != 0 ? (long)bb.getInt(o + bb_pos) & 0xFFFFFFFFL : 0L; } @@ -30,7 +31,7 @@ public final class GameSession extends Table { int nameOffset, int descOffset, long flags) { - builder.startObject(5); + builder.startTable(5); GameSession.addFlags(builder, flags); GameSession.addDesc(builder, descOffset); GameSession.addName(builder, nameOffset); @@ -39,15 +40,22 @@ public final class GameSession extends Table { return GameSession.endGameSession(builder); } - public static void startGameSession(FlatBufferBuilder builder) { builder.startObject(5); } + public static void startGameSession(FlatBufferBuilder builder) { builder.startTable(5); } public static void addIndex(FlatBufferBuilder builder, long index) { builder.addInt(0, (int)index, (int)0L); } public static void addPlayers(FlatBufferBuilder builder, int players) { builder.addByte(1, (byte)players, (byte)0); } public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(2, nameOffset, 0); } public static void addDesc(FlatBufferBuilder builder, int descOffset) { builder.addOffset(3, descOffset, 0); } public static void addFlags(FlatBufferBuilder builder, long flags) { builder.addInt(4, (int)flags, (int)0L); } public static int endGameSession(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 GameSession get(int j) { return get(new GameSession(), j); } + public GameSession get(GameSession obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/JoinGame.java b/core/gen/main/java/com/riiablo/net/packet/mcp/JoinGame.java index d73ce580..b97c6d58 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/JoinGame.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/JoinGame.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class JoinGame extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static JoinGame getRootAsJoinGame(ByteBuffer _bb) { return getRootAsJoinGame(_bb, new JoinGame()); } public static JoinGame getRootAsJoinGame(ByteBuffer _bb, JoinGame obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public JoinGame __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public String gameName() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } @@ -30,7 +31,7 @@ public final class JoinGame extends Table { int ip, short port, int result) { - builder.startObject(5); + builder.startTable(5); JoinGame.addResult(builder, result); JoinGame.addIp(builder, ip); JoinGame.addPassword(builder, passwordOffset); @@ -39,15 +40,22 @@ public final class JoinGame extends Table { return JoinGame.endJoinGame(builder); } - public static void startJoinGame(FlatBufferBuilder builder) { builder.startObject(5); } + public static void startJoinGame(FlatBufferBuilder builder) { builder.startTable(5); } public static void addGameName(FlatBufferBuilder builder, int gameNameOffset) { builder.addOffset(0, gameNameOffset, 0); } public static void addPassword(FlatBufferBuilder builder, int passwordOffset) { builder.addOffset(1, passwordOffset, 0); } public static void addIp(FlatBufferBuilder builder, int ip) { builder.addInt(2, ip, 0); } public static void addPort(FlatBufferBuilder builder, short port) { builder.addShort(3, port, 0); } public static void addResult(FlatBufferBuilder builder, int result) { builder.addInt(4, result, 0); } public static int endJoinGame(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 JoinGame get(int j) { return get(new JoinGame(), j); } + public JoinGame get(JoinGame obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/ListGames.java b/core/gen/main/java/com/riiablo/net/packet/mcp/ListGames.java index 5abf47dc..9a859dd8 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/ListGames.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/ListGames.java @@ -9,33 +9,43 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ListGames extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static ListGames getRootAsListGames(ByteBuffer _bb) { return getRootAsListGames(_bb, new ListGames()); } public static ListGames getRootAsListGames(ByteBuffer _bb, ListGames obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public ListGames __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long flags() { int o = __offset(4); return o != 0 ? (long)bb.getInt(o + bb_pos) & 0xFFFFFFFFL : 0L; } - public GameSession games(int j) { return games(new GameSession(), j); } - public GameSession games(GameSession obj, int j) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } + public com.riiablo.net.packet.mcp.GameSession games(int j) { return games(new com.riiablo.net.packet.mcp.GameSession(), j); } + public com.riiablo.net.packet.mcp.GameSession games(com.riiablo.net.packet.mcp.GameSession obj, int j) { int o = __offset(6); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; } public int gamesLength() { int o = __offset(6); return o != 0 ? __vector_len(o) : 0; } + public com.riiablo.net.packet.mcp.GameSession.Vector gamesVector() { return gamesVector(new com.riiablo.net.packet.mcp.GameSession.Vector()); } + public com.riiablo.net.packet.mcp.GameSession.Vector gamesVector(com.riiablo.net.packet.mcp.GameSession.Vector obj) { int o = __offset(6); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; } public static int createListGames(FlatBufferBuilder builder, long flags, int gamesOffset) { - builder.startObject(2); + builder.startTable(2); ListGames.addGames(builder, gamesOffset); ListGames.addFlags(builder, flags); return ListGames.endListGames(builder); } - public static void startListGames(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startListGames(FlatBufferBuilder builder) { builder.startTable(2); } public static void addFlags(FlatBufferBuilder builder, long flags) { builder.addInt(0, (int)flags, (int)0L); } public static void addGames(FlatBufferBuilder builder, int gamesOffset) { builder.addOffset(1, gamesOffset, 0); } public static int createGamesVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); } public static void startGamesVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); } public static int endListGames(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 ListGames get(int j) { return get(new ListGames(), j); } + public ListGames get(ListGames obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/mcp/MCP.java b/core/gen/main/java/com/riiablo/net/packet/mcp/MCP.java index 27a9f43e..29057016 100644 --- a/core/gen/main/java/com/riiablo/net/packet/mcp/MCP.java +++ b/core/gen/main/java/com/riiablo/net/packet/mcp/MCP.java @@ -9,31 +9,39 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class MCP extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static MCP getRootAsMCP(ByteBuffer _bb) { return getRootAsMCP(_bb, new MCP()); } public static MCP getRootAsMCP(ByteBuffer _bb, MCP obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public MCP __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte dataType() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 0; } - public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o) : null; } + public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o + bb_pos) : null; } public static int createMCP(FlatBufferBuilder builder, byte data_type, int dataOffset) { - builder.startObject(2); + builder.startTable(2); MCP.addData(builder, dataOffset); MCP.addDataType(builder, data_type); return MCP.endMCP(builder); } - public static void startMCP(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startMCP(FlatBufferBuilder builder) { builder.startTable(2); } public static void addDataType(FlatBufferBuilder builder, byte dataType) { builder.addByte(0, dataType, 0); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(1, dataOffset, 0); } public static int endMCP(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } public static void finishMCPBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } public static void finishSizePrefixedMCPBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(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 MCP get(int j) { return get(new MCP(), j); } + public MCP get(MCP obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/msi/MSI.java b/core/gen/main/java/com/riiablo/net/packet/msi/MSI.java index 97bb58ce..e027ead4 100644 --- a/core/gen/main/java/com/riiablo/net/packet/msi/MSI.java +++ b/core/gen/main/java/com/riiablo/net/packet/msi/MSI.java @@ -9,31 +9,39 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class MSI extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static MSI getRootAsMSI(ByteBuffer _bb) { return getRootAsMSI(_bb, new MSI()); } public static MSI getRootAsMSI(ByteBuffer _bb, MSI obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public MSI __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte dataType() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 0; } - public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o) : null; } + public Table data(Table obj) { int o = __offset(6); return o != 0 ? __union(obj, o + bb_pos) : null; } public static int createMSI(FlatBufferBuilder builder, byte data_type, int dataOffset) { - builder.startObject(2); + builder.startTable(2); MSI.addData(builder, dataOffset); MSI.addDataType(builder, data_type); return MSI.endMSI(builder); } - public static void startMSI(FlatBufferBuilder builder) { builder.startObject(2); } + public static void startMSI(FlatBufferBuilder builder) { builder.startTable(2); } public static void addDataType(FlatBufferBuilder builder, byte dataType) { builder.addByte(0, dataType, 0); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(1, dataOffset, 0); } public static int endMSI(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } public static void finishMSIBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } public static void finishSizePrefixedMSIBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(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 MSI get(int j) { return get(new MSI(), j); } + public MSI get(MSI obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/msi/StartInstance.java b/core/gen/main/java/com/riiablo/net/packet/msi/StartInstance.java index f9f2b6b2..ecf3e06c 100644 --- a/core/gen/main/java/com/riiablo/net/packet/msi/StartInstance.java +++ b/core/gen/main/java/com/riiablo/net/packet/msi/StartInstance.java @@ -9,9 +9,10 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class StartInstance extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static StartInstance getRootAsStartInstance(ByteBuffer _bb) { return getRootAsStartInstance(_bb, new StartInstance()); } public static StartInstance getRootAsStartInstance(ByteBuffer _bb, StartInstance obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public StartInstance __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public byte result() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) : 0; } @@ -22,20 +23,27 @@ public final class StartInstance extends Table { byte result, int ip, short port) { - builder.startObject(3); + builder.startTable(3); StartInstance.addIp(builder, ip); StartInstance.addPort(builder, port); StartInstance.addResult(builder, result); return StartInstance.endStartInstance(builder); } - public static void startStartInstance(FlatBufferBuilder builder) { builder.startObject(3); } + public static void startStartInstance(FlatBufferBuilder builder) { builder.startTable(3); } public static void addResult(FlatBufferBuilder builder, byte result) { builder.addByte(0, result, 0); } public static void addIp(FlatBufferBuilder builder, int ip) { builder.addInt(1, ip, 0); } public static void addPort(FlatBufferBuilder builder, short port) { builder.addShort(2, port, 0); } public static int endStartInstance(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 StartInstance get(int j) { return get(new StartInstance(), j); } + public StartInstance get(StartInstance obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/netty/Connection.java b/core/gen/main/java/com/riiablo/net/packet/netty/Connection.java index f5f2c7ec..a86b18e7 100644 --- a/core/gen/main/java/com/riiablo/net/packet/netty/Connection.java +++ b/core/gen/main/java/com/riiablo/net/packet/netty/Connection.java @@ -9,25 +9,33 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Connection extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Connection getRootAsConnection(ByteBuffer _bb) { return getRootAsConnection(_bb, new Connection()); } public static Connection getRootAsConnection(ByteBuffer _bb, Connection obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Connection __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long salt() { int o = __offset(4); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } public static int createConnection(FlatBufferBuilder builder, long salt) { - builder.startObject(1); + builder.startTable(1); Connection.addSalt(builder, salt); return Connection.endConnection(builder); } - public static void startConnection(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startConnection(FlatBufferBuilder builder) { builder.startTable(1); } public static void addSalt(FlatBufferBuilder builder, long salt) { builder.addLong(0, salt, 0L); } public static int endConnection(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Connection get(int j) { return get(new Connection(), j); } + public Connection get(Connection obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/netty/Disconnect.java b/core/gen/main/java/com/riiablo/net/packet/netty/Disconnect.java index f7dadb4d..6b5462bf 100644 --- a/core/gen/main/java/com/riiablo/net/packet/netty/Disconnect.java +++ b/core/gen/main/java/com/riiablo/net/packet/netty/Disconnect.java @@ -9,16 +9,24 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Disconnect extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Disconnect getRootAsDisconnect(ByteBuffer _bb) { return getRootAsDisconnect(_bb, new Disconnect()); } public static Disconnect getRootAsDisconnect(ByteBuffer _bb, Disconnect obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Disconnect __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public static void startDisconnect(FlatBufferBuilder builder) { builder.startObject(0); } + public static void startDisconnect(FlatBufferBuilder builder) { builder.startTable(0); } public static int endDisconnect(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Disconnect get(int j) { return get(new Disconnect(), j); } + public Disconnect get(Disconnect obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/netty/Netty.java b/core/gen/main/java/com/riiablo/net/packet/netty/Netty.java index 47f65f43..2b5b79eb 100644 --- a/core/gen/main/java/com/riiablo/net/packet/netty/Netty.java +++ b/core/gen/main/java/com/riiablo/net/packet/netty/Netty.java @@ -9,35 +9,43 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Netty extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Netty getRootAsNetty(ByteBuffer _bb) { return getRootAsNetty(_bb, new Netty()); } public static Netty getRootAsNetty(ByteBuffer _bb, Netty obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Netty __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long salt() { int o = __offset(4); return o != 0 ? bb.getLong(o + bb_pos) : 0L; } public byte dataType() { int o = __offset(6); return o != 0 ? bb.get(o + bb_pos) : 0; } - public Table data(Table obj) { int o = __offset(8); return o != 0 ? __union(obj, o) : null; } + public Table data(Table obj) { int o = __offset(8); return o != 0 ? __union(obj, o + bb_pos) : null; } public static int createNetty(FlatBufferBuilder builder, long salt, byte data_type, int dataOffset) { - builder.startObject(3); + builder.startTable(3); Netty.addSalt(builder, salt); Netty.addData(builder, dataOffset); Netty.addDataType(builder, data_type); return Netty.endNetty(builder); } - public static void startNetty(FlatBufferBuilder builder) { builder.startObject(3); } + public static void startNetty(FlatBufferBuilder builder) { builder.startTable(3); } public static void addSalt(FlatBufferBuilder builder, long salt) { builder.addLong(0, salt, 0L); } public static void addDataType(FlatBufferBuilder builder, byte dataType) { builder.addByte(1, dataType, 0); } public static void addData(FlatBufferBuilder builder, int dataOffset) { builder.addOffset(2, dataOffset, 0); } public static int endNetty(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } public static void finishNettyBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); } public static void finishSizePrefixedNettyBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(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 Netty get(int j) { return get(new Netty(), j); } + public Netty get(Netty obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/core/gen/main/java/com/riiablo/net/packet/netty/Ping.java b/core/gen/main/java/com/riiablo/net/packet/netty/Ping.java index 808bd28c..80bbdd8e 100644 --- a/core/gen/main/java/com/riiablo/net/packet/netty/Ping.java +++ b/core/gen/main/java/com/riiablo/net/packet/netty/Ping.java @@ -9,16 +9,24 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class Ping extends Table { + public static void ValidateVersion() { Constants.FLATBUFFERS_1_12_0(); } public static Ping getRootAsPing(ByteBuffer _bb) { return getRootAsPing(_bb, new Ping()); } public static Ping getRootAsPing(ByteBuffer _bb, Ping obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } - public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; vtable_start = bb_pos - bb.getInt(bb_pos); vtable_size = bb.getShort(vtable_start); } + public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } public Ping __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public static void startPing(FlatBufferBuilder builder) { builder.startObject(0); } + public static void startPing(FlatBufferBuilder builder) { builder.startTable(0); } public static int endPing(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } + + 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 Ping get(int j) { return get(new Ping(), j); } + public Ping get(Ping obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } + } } diff --git a/flatbuffers/flatc.exe b/flatbuffers/flatc.exe index 1f6f6d76..6337870b 100644 Binary files a/flatbuffers/flatc.exe and b/flatbuffers/flatc.exe differ diff --git a/gradle.properties b/gradle.properties index 93446b44..664224dc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,6 +9,6 @@ artemisOdbVersion=2.3.0 artemisContribVersion=2.4.0 gdxAiVersion=1.8.2 nettyVersion=4.1.50.Final -flatbuffersVersion=1.11.0 +flatbuffersVersion=1.12.0 cliVersion=1.4 box2DLightsVersion=1.5