mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-08-04 00:49:44 +07:00
Committing flatbuffer tables for angle, position and velocity
This commit is contained in:
38
core/gen/com/riiablo/net/packet/d2gs/Angle.java
Normal file
38
core/gen/com/riiablo/net/packet/d2gs/Angle.java
Normal file
@ -0,0 +1,38 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
package com.riiablo.net.packet.d2gs;
|
||||
|
||||
import com.google.flatbuffers.FlatBufferBuilder;
|
||||
import com.google.flatbuffers.Table;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public final class Angle extends Table {
|
||||
public static Angle getRootAsAngle(ByteBuffer _bb) { return getRootAsAngle(_bb, new Angle()); }
|
||||
public static Angle getRootAsAngle(ByteBuffer _bb, Angle 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 Angle __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; }
|
||||
public float y() { int o = __offset(6); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; }
|
||||
|
||||
public static int createAngle(FlatBufferBuilder builder,
|
||||
float x,
|
||||
float y) {
|
||||
builder.startObject(2);
|
||||
Angle.addY(builder, y);
|
||||
Angle.addX(builder, x);
|
||||
return Angle.endAngle(builder);
|
||||
}
|
||||
|
||||
public static void startAngle(FlatBufferBuilder builder) { builder.startObject(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 endAngle(FlatBufferBuilder builder) {
|
||||
int o = builder.endObject();
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
37
core/gen/com/riiablo/net/packet/d2gs/Position.java
Normal file
37
core/gen/com/riiablo/net/packet/d2gs/Position.java
Normal file
@ -0,0 +1,37 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
package com.riiablo.net.packet.d2gs;
|
||||
|
||||
import java.nio.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
import com.google.flatbuffers.*;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public final class Position extends Table {
|
||||
public static Position getRootAsPosition(ByteBuffer _bb) { return getRootAsPosition(_bb, new Position()); }
|
||||
public static Position getRootAsPosition(ByteBuffer _bb, Position 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 Position __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; }
|
||||
public float y() { int o = __offset(6); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; }
|
||||
|
||||
public static int createPosition(FlatBufferBuilder builder,
|
||||
float x,
|
||||
float y) {
|
||||
builder.startObject(2);
|
||||
Position.addY(builder, y);
|
||||
Position.addX(builder, x);
|
||||
return Position.endPosition(builder);
|
||||
}
|
||||
|
||||
public static void startPosition(FlatBufferBuilder builder) { builder.startObject(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 endPosition(FlatBufferBuilder builder) {
|
||||
int o = builder.endObject();
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
37
core/gen/com/riiablo/net/packet/d2gs/Velocity.java
Normal file
37
core/gen/com/riiablo/net/packet/d2gs/Velocity.java
Normal file
@ -0,0 +1,37 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
package com.riiablo.net.packet.d2gs;
|
||||
|
||||
import java.nio.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
import com.google.flatbuffers.*;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public final class Velocity extends Table {
|
||||
public static Velocity getRootAsVelocity(ByteBuffer _bb) { return getRootAsVelocity(_bb, new Velocity()); }
|
||||
public static Velocity getRootAsVelocity(ByteBuffer _bb, Velocity 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 Velocity __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; }
|
||||
public float y() { int o = __offset(6); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; }
|
||||
|
||||
public static int createVelocity(FlatBufferBuilder builder,
|
||||
float x,
|
||||
float y) {
|
||||
builder.startObject(2);
|
||||
Velocity.addY(builder, y);
|
||||
Velocity.addX(builder, x);
|
||||
return Velocity.endVelocity(builder);
|
||||
}
|
||||
|
||||
public static void startVelocity(FlatBufferBuilder builder) { builder.startObject(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 endVelocity(FlatBufferBuilder builder) {
|
||||
int o = builder.endObject();
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user