Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
335 changes: 330 additions & 5 deletions protocol/cpp/include/solarxr_protocol/generated/all_generated.h

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/ChangeKeybindRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

@SuppressWarnings("unused")
public final class ChangeKeybindRequest extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
public static ChangeKeybindRequest getRootAsChangeKeybindRequest(ByteBuffer _bb) { return getRootAsChangeKeybindRequest(_bb, new ChangeKeybindRequest()); }
public static ChangeKeybindRequest getRootAsChangeKeybindRequest(ByteBuffer _bb, ChangeKeybindRequest obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public ChangeKeybindRequest __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

public solarxr_protocol.rpc.Keybind keybind(int j) { return keybind(new solarxr_protocol.rpc.Keybind(), j); }
public solarxr_protocol.rpc.Keybind keybind(solarxr_protocol.rpc.Keybind obj, int j) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
public int keybindLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
public solarxr_protocol.rpc.Keybind.Vector keybindVector() { return keybindVector(new solarxr_protocol.rpc.Keybind.Vector()); }
public solarxr_protocol.rpc.Keybind.Vector keybindVector(solarxr_protocol.rpc.Keybind.Vector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }

public static int createChangeKeybindRequest(FlatBufferBuilder builder,
int keybindOffset) {
builder.startTable(1);
ChangeKeybindRequest.addKeybind(builder, keybindOffset);
return ChangeKeybindRequest.endChangeKeybindRequest(builder);
}

public static void startChangeKeybindRequest(FlatBufferBuilder builder) { builder.startTable(1); }
public static void addKeybind(FlatBufferBuilder builder, int keybindOffset) { builder.addOffset(0, keybindOffset, 0); }
public static int createKeybindVector(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 startKeybindVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
public static int endChangeKeybindRequest(FlatBufferBuilder builder) {
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 ChangeKeybindRequest get(int j) { return get(new ChangeKeybindRequest(), j); }
public ChangeKeybindRequest get(ChangeKeybindRequest obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
public ChangeKeybindRequestT unpack() {
ChangeKeybindRequestT _o = new ChangeKeybindRequestT();
unpackTo(_o);
return _o;
}
public void unpackTo(ChangeKeybindRequestT _o) {
solarxr_protocol.rpc.KeybindT[] _oKeybind = new solarxr_protocol.rpc.KeybindT[keybindLength()];
for (int _j = 0; _j < keybindLength(); ++_j) {_oKeybind[_j] = (keybind(_j) != null ? keybind(_j).unpack() : null);}
_o.setKeybind(_oKeybind);
}
public static int pack(FlatBufferBuilder builder, ChangeKeybindRequestT _o) {
if (_o == null) return 0;
int _keybind = 0;
if (_o.getKeybind() != null) {
int[] __keybind = new int[_o.getKeybind().length];
int _j = 0;
for (solarxr_protocol.rpc.KeybindT _e : _o.getKeybind()) { __keybind[_j] = solarxr_protocol.rpc.Keybind.pack(builder, _e); _j++;}
_keybind = createKeybindVector(builder, __keybind);
}
return createChangeKeybindRequest(
builder,
_keybind);
}
}

22 changes: 22 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/ChangeKeybindRequestT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

public class ChangeKeybindRequestT {
private solarxr_protocol.rpc.KeybindT[] keybind;

public solarxr_protocol.rpc.KeybindT[] getKeybind() { return keybind; }

public void setKeybind(solarxr_protocol.rpc.KeybindT[] keybind) { this.keybind = keybind; }


public ChangeKeybindRequestT() {
this.keybind = null;
}
}

73 changes: 73 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/Keybind.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

@SuppressWarnings("unused")
public final class Keybind extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
public static Keybind getRootAsKeybind(ByteBuffer _bb) { return getRootAsKeybind(_bb, new Keybind()); }
public static Keybind getRootAsKeybind(ByteBuffer _bb, Keybind obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public Keybind __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

public int keybindName() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; }
public String keybindValue() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
public ByteBuffer keybindValueAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
public ByteBuffer keybindValueInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); }
public float keybindDelay() { int o = __offset(8); return o != 0 ? bb.getFloat(o + bb_pos) : 0.0f; }

public static int createKeybind(FlatBufferBuilder builder,
int keybindName,
int keybindValueOffset,
float keybindDelay) {
builder.startTable(3);
Keybind.addKeybindDelay(builder, keybindDelay);
Keybind.addKeybindValue(builder, keybindValueOffset);
Keybind.addKeybindName(builder, keybindName);
return Keybind.endKeybind(builder);
}

public static void startKeybind(FlatBufferBuilder builder) { builder.startTable(3); }
public static void addKeybindName(FlatBufferBuilder builder, int keybindName) { builder.addByte(0, (byte) keybindName, (byte) 0); }
public static void addKeybindValue(FlatBufferBuilder builder, int keybindValueOffset) { builder.addOffset(1, keybindValueOffset, 0); }
public static void addKeybindDelay(FlatBufferBuilder builder, float keybindDelay) { builder.addFloat(2, keybindDelay, 0.0f); }
public static int endKeybind(FlatBufferBuilder builder) {
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 Keybind get(int j) { return get(new Keybind(), j); }
public Keybind get(Keybind obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
public KeybindT unpack() {
KeybindT _o = new KeybindT();
unpackTo(_o);
return _o;
}
public void unpackTo(KeybindT _o) {
int _oKeybindName = keybindName();
_o.setKeybindName(_oKeybindName);
String _oKeybindValue = keybindValue();
_o.setKeybindValue(_oKeybindValue);
float _oKeybindDelay = keybindDelay();
_o.setKeybindDelay(_oKeybindDelay);
}
public static int pack(FlatBufferBuilder builder, KeybindT _o) {
if (_o == null) return 0;
int _keybindValue = _o.getKeybindValue() == null ? 0 : builder.createString(_o.getKeybindValue());
return createKeybind(
builder,
_o.getKeybindName(),
_keybindValue,
_o.getKeybindDelay());
}
}

18 changes: 18 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/KeybindName.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

@SuppressWarnings("unused")
public final class KeybindName {
private KeybindName() { }
public static final int FULL_RESET = 0;
public static final int YAW_RESET = 1;
public static final int MOUNTING_RESET = 2;
public static final int PAUSE_TRACKING = 3;
public static final int FEET_MOUNTING_RESET = 4;

public static final String[] names = { "FULL_RESET", "YAW_RESET", "MOUNTING_RESET", "PAUSE_TRACKING", "FEET_MOUNTING_RESET", };

public static String name(int e) { return names[e]; }
}

56 changes: 56 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/KeybindRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

@SuppressWarnings("unused")
public final class KeybindRequest extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
public static KeybindRequest getRootAsKeybindRequest(ByteBuffer _bb) { return getRootAsKeybindRequest(_bb, new KeybindRequest()); }
public static KeybindRequest getRootAsKeybindRequest(ByteBuffer _bb, KeybindRequest obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public KeybindRequest __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

public int keybindName() { int o = __offset(4); return o != 0 ? bb.get(o + bb_pos) & 0xFF : 0; }

public static int createKeybindRequest(FlatBufferBuilder builder,
int keybindName) {
builder.startTable(1);
KeybindRequest.addKeybindName(builder, keybindName);
return KeybindRequest.endKeybindRequest(builder);
}

public static void startKeybindRequest(FlatBufferBuilder builder) { builder.startTable(1); }
public static void addKeybindName(FlatBufferBuilder builder, int keybindName) { builder.addByte(0, (byte) keybindName, (byte) 0); }
public static int endKeybindRequest(FlatBufferBuilder builder) {
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 KeybindRequest get(int j) { return get(new KeybindRequest(), j); }
public KeybindRequest get(KeybindRequest obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
public KeybindRequestT unpack() {
KeybindRequestT _o = new KeybindRequestT();
unpackTo(_o);
return _o;
}
public void unpackTo(KeybindRequestT _o) {
int _oKeybindName = keybindName();
_o.setKeybindName(_oKeybindName);
}
public static int pack(FlatBufferBuilder builder, KeybindRequestT _o) {
if (_o == null) return 0;
return createKeybindRequest(
builder,
_o.getKeybindName());
}
}

22 changes: 22 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/KeybindRequestT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

public class KeybindRequestT {
private int keybindName;

public int getKeybindName() { return keybindName; }

public void setKeybindName(int keybindName) { this.keybindName = keybindName; }


public KeybindRequestT() {
this.keybindName = 0;
}
}

70 changes: 70 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/KeybindResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

@SuppressWarnings("unused")
public final class KeybindResponse extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
public static KeybindResponse getRootAsKeybindResponse(ByteBuffer _bb) { return getRootAsKeybindResponse(_bb, new KeybindResponse()); }
public static KeybindResponse getRootAsKeybindResponse(ByteBuffer _bb, KeybindResponse obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public KeybindResponse __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

public solarxr_protocol.rpc.Keybind keybind(int j) { return keybind(new solarxr_protocol.rpc.Keybind(), j); }
public solarxr_protocol.rpc.Keybind keybind(solarxr_protocol.rpc.Keybind obj, int j) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
public int keybindLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
public solarxr_protocol.rpc.Keybind.Vector keybindVector() { return keybindVector(new solarxr_protocol.rpc.Keybind.Vector()); }
public solarxr_protocol.rpc.Keybind.Vector keybindVector(solarxr_protocol.rpc.Keybind.Vector obj) { int o = __offset(4); return o != 0 ? obj.__assign(__vector(o), 4, bb) : null; }

public static int createKeybindResponse(FlatBufferBuilder builder,
int keybindOffset) {
builder.startTable(1);
KeybindResponse.addKeybind(builder, keybindOffset);
return KeybindResponse.endKeybindResponse(builder);
}

public static void startKeybindResponse(FlatBufferBuilder builder) { builder.startTable(1); }
public static void addKeybind(FlatBufferBuilder builder, int keybindOffset) { builder.addOffset(0, keybindOffset, 0); }
public static int createKeybindVector(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 startKeybindVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
public static int endKeybindResponse(FlatBufferBuilder builder) {
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 KeybindResponse get(int j) { return get(new KeybindResponse(), j); }
public KeybindResponse get(KeybindResponse obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
public KeybindResponseT unpack() {
KeybindResponseT _o = new KeybindResponseT();
unpackTo(_o);
return _o;
}
public void unpackTo(KeybindResponseT _o) {
solarxr_protocol.rpc.KeybindT[] _oKeybind = new solarxr_protocol.rpc.KeybindT[keybindLength()];
for (int _j = 0; _j < keybindLength(); ++_j) {_oKeybind[_j] = (keybind(_j) != null ? keybind(_j).unpack() : null);}
_o.setKeybind(_oKeybind);
}
public static int pack(FlatBufferBuilder builder, KeybindResponseT _o) {
if (_o == null) return 0;
int _keybind = 0;
if (_o.getKeybind() != null) {
int[] __keybind = new int[_o.getKeybind().length];
int _j = 0;
for (solarxr_protocol.rpc.KeybindT _e : _o.getKeybind()) { __keybind[_j] = solarxr_protocol.rpc.Keybind.pack(builder, _e); _j++;}
_keybind = createKeybindVector(builder, __keybind);
}
return createKeybindResponse(
builder,
_keybind);
}
}

22 changes: 22 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/KeybindResponseT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

public class KeybindResponseT {
private solarxr_protocol.rpc.KeybindT[] keybind;

public solarxr_protocol.rpc.KeybindT[] getKeybind() { return keybind; }

public void setKeybind(solarxr_protocol.rpc.KeybindT[] keybind) { this.keybind = keybind; }


public KeybindResponseT() {
this.keybind = null;
}
}

34 changes: 34 additions & 0 deletions protocol/java/src/solarxr_protocol/rpc/KeybindT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// automatically generated by the FlatBuffers compiler, do not modify

package solarxr_protocol.rpc;

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

public class KeybindT {
private int keybindName;
private String keybindValue;
private float keybindDelay;

public int getKeybindName() { return keybindName; }

public void setKeybindName(int keybindName) { this.keybindName = keybindName; }

public String getKeybindValue() { return keybindValue; }

public void setKeybindValue(String keybindValue) { this.keybindValue = keybindValue; }

public float getKeybindDelay() { return keybindDelay; }

public void setKeybindDelay(float keybindDelay) { this.keybindDelay = keybindDelay; }


public KeybindT() {
this.keybindName = 0;
this.keybindValue = null;
this.keybindDelay = 0.0f;
}
}

Loading