mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
switch from Unity version control to git
This commit is contained in:
72
Assets/Flatbuffers_generated/ModuleConnection.cs
Normal file
72
Assets/Flatbuffers_generated/ModuleConnection.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
namespace Frontend
|
||||
{
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct ModuleConnection : IFlatbufferObject
|
||||
{
|
||||
private Table __p;
|
||||
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||||
public static void ValidateVersion() { }
|
||||
public static ModuleConnection GetRootAsModuleConnection(ByteBuffer _bb) { return GetRootAsModuleConnection(_bb, new ModuleConnection()); }
|
||||
public static ModuleConnection GetRootAsModuleConnection(ByteBuffer _bb, ModuleConnection obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||||
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||||
public ModuleConnection __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
||||
|
||||
public byte FromModuleId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } }
|
||||
public byte ToModuleId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } }
|
||||
public byte FromSocket { get { int o = __p.__offset(8); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } }
|
||||
public byte ToSocket { get { int o = __p.__offset(10); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } }
|
||||
public Orientation Orientation { get { int o = __p.__offset(12); return o != 0 ? (Orientation)__p.bb.GetSbyte(o + __p.bb_pos) : Orientation.Deg0; } }
|
||||
|
||||
public static Offset<Frontend.ModuleConnection> CreateModuleConnection(FlatBufferBuilder builder,
|
||||
byte from_module_id = 0,
|
||||
byte to_module_id = 0,
|
||||
byte from_socket = 0,
|
||||
byte to_socket = 0,
|
||||
Orientation orientation = Orientation.Deg0)
|
||||
{
|
||||
builder.StartTable(5);
|
||||
ModuleConnection.AddOrientation(builder, orientation);
|
||||
ModuleConnection.AddToSocket(builder, to_socket);
|
||||
ModuleConnection.AddFromSocket(builder, from_socket);
|
||||
ModuleConnection.AddToModuleId(builder, to_module_id);
|
||||
ModuleConnection.AddFromModuleId(builder, from_module_id);
|
||||
return ModuleConnection.EndModuleConnection(builder);
|
||||
}
|
||||
|
||||
public static void StartModuleConnection(FlatBufferBuilder builder) { builder.StartTable(5); }
|
||||
public static void AddFromModuleId(FlatBufferBuilder builder, byte fromModuleId) { builder.AddByte(0, fromModuleId, 0); }
|
||||
public static void AddToModuleId(FlatBufferBuilder builder, byte toModuleId) { builder.AddByte(1, toModuleId, 0); }
|
||||
public static void AddFromSocket(FlatBufferBuilder builder, byte fromSocket) { builder.AddByte(2, fromSocket, 0); }
|
||||
public static void AddToSocket(FlatBufferBuilder builder, byte toSocket) { builder.AddByte(3, toSocket, 0); }
|
||||
public static void AddOrientation(FlatBufferBuilder builder, Orientation orientation) { builder.AddSbyte(4, (sbyte)orientation, 0); }
|
||||
public static Offset<Frontend.ModuleConnection> EndModuleConnection(FlatBufferBuilder builder)
|
||||
{
|
||||
int o = builder.EndTable();
|
||||
return new Offset<Frontend.ModuleConnection>(o);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static public class ModuleConnectionVerify
|
||||
{
|
||||
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
||||
{
|
||||
return verifier.VerifyTableStart(tablePos)
|
||||
&& verifier.VerifyField(tablePos, 4 /*FromModuleId*/, 1 /*byte*/, 1, false)
|
||||
&& verifier.VerifyField(tablePos, 6 /*ToModuleId*/, 1 /*byte*/, 1, false)
|
||||
&& verifier.VerifyField(tablePos, 8 /*FromSocket*/, 1 /*byte*/, 1, false)
|
||||
&& verifier.VerifyField(tablePos, 10 /*ToSocket*/, 1 /*byte*/, 1, false)
|
||||
&& verifier.VerifyField(tablePos, 12 /*Orientation*/, 1 /*Orientation*/, 1, false)
|
||||
&& verifier.VerifyTableEnd(tablePos);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Flatbuffers_generated/ModuleConnection.cs.meta
Normal file
11
Assets/Flatbuffers_generated/ModuleConnection.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d201b6450d0e4cbe90f5b5786daaa13
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
29
Assets/Flatbuffers_generated/ModuleState.cs
Normal file
29
Assets/Flatbuffers_generated/ModuleState.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
public enum ModuleState : byte
|
||||
{
|
||||
NONE = 0,
|
||||
MotorState = 1,
|
||||
};
|
||||
|
||||
|
||||
|
||||
static public class ModuleStateVerify
|
||||
{
|
||||
static public bool Verify(Google.FlatBuffers.Verifier verifier, byte typeId, uint tablePos)
|
||||
{
|
||||
bool result = true;
|
||||
switch((ModuleState)typeId)
|
||||
{
|
||||
case ModuleState.MotorState:
|
||||
result = MotorStateVerify.Verify(verifier, tablePos);
|
||||
break;
|
||||
default: result = true;
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
11
Assets/Flatbuffers_generated/ModuleState.cs.meta
Normal file
11
Assets/Flatbuffers_generated/ModuleState.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a3c28324e9ccf417ca5c3ec7520c2c1a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
13
Assets/Flatbuffers_generated/ModuleType.cs
Normal file
13
Assets/Flatbuffers_generated/ModuleType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
public enum ModuleType : sbyte
|
||||
{
|
||||
SPLITTER = 0,
|
||||
SERVO_1 = 1,
|
||||
DC_MOTOR = 2,
|
||||
BATTERY = 3,
|
||||
SERVO_2 = 4,
|
||||
};
|
||||
|
||||
11
Assets/Flatbuffers_generated/ModuleType.cs.meta
Normal file
11
Assets/Flatbuffers_generated/ModuleType.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5ef40cf043e624e82813974f777d40a0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
45
Assets/Flatbuffers_generated/MotorState.cs
Normal file
45
Assets/Flatbuffers_generated/MotorState.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct MotorState : IFlatbufferObject
|
||||
{
|
||||
private Table __p;
|
||||
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||||
public static void ValidateVersion() { }
|
||||
public static MotorState GetRootAsMotorState(ByteBuffer _bb) { return GetRootAsMotorState(_bb, new MotorState()); }
|
||||
public static MotorState GetRootAsMotorState(ByteBuffer _bb, MotorState obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||||
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||||
public MotorState __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
||||
|
||||
public int Angle { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
||||
|
||||
public static Offset<MotorState> CreateMotorState(FlatBufferBuilder builder,
|
||||
int angle = 0) {
|
||||
builder.StartTable(1);
|
||||
MotorState.AddAngle(builder, angle);
|
||||
return MotorState.EndMotorState(builder);
|
||||
}
|
||||
|
||||
public static void StartMotorState(FlatBufferBuilder builder) { builder.StartTable(1); }
|
||||
public static void AddAngle(FlatBufferBuilder builder, int angle) { builder.AddInt(0, angle, 0); }
|
||||
public static Offset<MotorState> EndMotorState(FlatBufferBuilder builder) {
|
||||
int o = builder.EndTable();
|
||||
return new Offset<MotorState>(o);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static public class MotorStateVerify
|
||||
{
|
||||
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
||||
{
|
||||
return verifier.VerifyTableStart(tablePos)
|
||||
&& verifier.VerifyField(tablePos, 4 /*Angle*/, 4 /*int*/, 4, false)
|
||||
&& verifier.VerifyTableEnd(tablePos);
|
||||
}
|
||||
}
|
||||
11
Assets/Flatbuffers_generated/MotorState.cs.meta
Normal file
11
Assets/Flatbuffers_generated/MotorState.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f0cb4d63336340b0bf2110db7c128e5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
12
Assets/Flatbuffers_generated/Orientation.cs
Normal file
12
Assets/Flatbuffers_generated/Orientation.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
public enum Orientation : sbyte
|
||||
{
|
||||
Deg0 = 0,
|
||||
Deg90 = 1,
|
||||
Deg180 = 2,
|
||||
Deg270 = 3,
|
||||
};
|
||||
|
||||
11
Assets/Flatbuffers_generated/Orientation.cs.meta
Normal file
11
Assets/Flatbuffers_generated/Orientation.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac2a8fe501a9f45eab3d37011d76deca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
70
Assets/Flatbuffers_generated/RobotConfiguration.cs
Normal file
70
Assets/Flatbuffers_generated/RobotConfiguration.cs
Normal file
@@ -0,0 +1,70 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
namespace Frontend
|
||||
{
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct RobotConfiguration : IFlatbufferObject
|
||||
{
|
||||
private Table __p;
|
||||
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||||
public static void ValidateVersion() { }
|
||||
public static RobotConfiguration GetRootAsRobotConfiguration(ByteBuffer _bb) { return GetRootAsRobotConfiguration(_bb, new RobotConfiguration()); }
|
||||
public static RobotConfiguration GetRootAsRobotConfiguration(ByteBuffer _bb, RobotConfiguration obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||||
public static bool VerifyRobotConfiguration(ByteBuffer _bb) {Google.FlatBuffers.Verifier verifier = new Google.FlatBuffers.Verifier(_bb); return verifier.VerifyBuffer("", false, RobotConfigurationVerify.Verify); }
|
||||
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||||
public RobotConfiguration __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
||||
|
||||
public RobotModule? Modules(int j) { int o = __p.__offset(4); return o != 0 ? (RobotModule?)(new RobotModule()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
|
||||
public int ModulesLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } }
|
||||
public Frontend.ModuleConnection? Connections(int j) { int o = __p.__offset(6); return o != 0 ? (Frontend.ModuleConnection?)(new Frontend.ModuleConnection()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
|
||||
public int ConnectionsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } }
|
||||
|
||||
public static Offset<Frontend.RobotConfiguration> CreateRobotConfiguration(FlatBufferBuilder builder,
|
||||
VectorOffset modulesOffset = default(VectorOffset),
|
||||
VectorOffset connectionsOffset = default(VectorOffset)) {
|
||||
builder.StartTable(2);
|
||||
RobotConfiguration.AddConnections(builder, connectionsOffset);
|
||||
RobotConfiguration.AddModules(builder, modulesOffset);
|
||||
return RobotConfiguration.EndRobotConfiguration(builder);
|
||||
}
|
||||
|
||||
public static void StartRobotConfiguration(FlatBufferBuilder builder) { builder.StartTable(2); }
|
||||
public static void AddModules(FlatBufferBuilder builder, VectorOffset modulesOffset) { builder.AddOffset(0, modulesOffset.Value, 0); }
|
||||
public static VectorOffset CreateModulesVector(FlatBufferBuilder builder, Offset<RobotModule>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
|
||||
public static VectorOffset CreateModulesVectorBlock(FlatBufferBuilder builder, Offset<RobotModule>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
||||
public static VectorOffset CreateModulesVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<RobotModule>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
||||
public static VectorOffset CreateModulesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<RobotModule>>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
||||
public static void StartModulesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
||||
public static void AddConnections(FlatBufferBuilder builder, VectorOffset connectionsOffset) { builder.AddOffset(1, connectionsOffset.Value, 0); }
|
||||
public static VectorOffset CreateConnectionsVector(FlatBufferBuilder builder, Offset<Frontend.ModuleConnection>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
|
||||
public static VectorOffset CreateConnectionsVectorBlock(FlatBufferBuilder builder, Offset<Frontend.ModuleConnection>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
||||
public static VectorOffset CreateConnectionsVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<Frontend.ModuleConnection>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
||||
public static VectorOffset CreateConnectionsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<Frontend.ModuleConnection>>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
||||
public static void StartConnectionsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
||||
public static Offset<Frontend.RobotConfiguration> EndRobotConfiguration(FlatBufferBuilder builder) {
|
||||
int o = builder.EndTable();
|
||||
return new Offset<Frontend.RobotConfiguration>(o);
|
||||
}
|
||||
public static void FinishRobotConfigurationBuffer(FlatBufferBuilder builder, Offset<Frontend.RobotConfiguration> offset) { builder.Finish(offset.Value); }
|
||||
public static void FinishSizePrefixedRobotConfigurationBuffer(FlatBufferBuilder builder, Offset<Frontend.RobotConfiguration> offset) { builder.FinishSizePrefixed(offset.Value); }
|
||||
}
|
||||
|
||||
|
||||
static public class RobotConfigurationVerify
|
||||
{
|
||||
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
||||
{
|
||||
return verifier.VerifyTableStart(tablePos)
|
||||
&& verifier.VerifyVectorOfTables(tablePos, 4 /*Modules*/, RobotModuleVerify.Verify, false)
|
||||
&& verifier.VerifyVectorOfTables(tablePos, 6 /*Connections*/, Frontend.ModuleConnectionVerify.Verify, false)
|
||||
&& verifier.VerifyTableEnd(tablePos);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Flatbuffers_generated/RobotConfiguration.cs.meta
Normal file
11
Assets/Flatbuffers_generated/RobotConfiguration.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82e7cacf483fc4a41b65c8fdda5c8839
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
64
Assets/Flatbuffers_generated/RobotModule.cs
Normal file
64
Assets/Flatbuffers_generated/RobotModule.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
// <auto-generated>
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// </auto-generated>
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct RobotModule : IFlatbufferObject
|
||||
{
|
||||
private Table __p;
|
||||
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||||
public static void ValidateVersion() { }
|
||||
public static RobotModule GetRootAsRobotModule(ByteBuffer _bb) { return GetRootAsRobotModule(_bb, new RobotModule()); }
|
||||
public static RobotModule GetRootAsRobotModule(ByteBuffer _bb, RobotModule obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||||
public static bool VerifyRobotModule(ByteBuffer _bb) {Google.FlatBuffers.Verifier verifier = new Google.FlatBuffers.Verifier(_bb); return verifier.VerifyBuffer("", false, RobotModuleVerify.Verify); }
|
||||
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||||
public RobotModule __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
||||
|
||||
public byte Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.Get(o + __p.bb_pos) : (byte)0; } }
|
||||
public ModuleType ModuleType { get { int o = __p.__offset(6); return o != 0 ? (ModuleType)__p.bb.GetSbyte(o + __p.bb_pos) : ModuleType.SPLITTER; } }
|
||||
public ModuleState ConfigurationType { get { int o = __p.__offset(8); return o != 0 ? (ModuleState)__p.bb.Get(o + __p.bb_pos) : ModuleState.NONE; } }
|
||||
public TTable? Configuration<TTable>() where TTable : struct, IFlatbufferObject { int o = __p.__offset(10); return o != 0 ? (TTable?)__p.__union<TTable>(o + __p.bb_pos) : null; }
|
||||
public MotorState ConfigurationAsMotorState() { return Configuration<MotorState>().Value; }
|
||||
|
||||
public static Offset<RobotModule> CreateRobotModule(FlatBufferBuilder builder,
|
||||
byte id = 0,
|
||||
ModuleType module_type = ModuleType.SPLITTER,
|
||||
ModuleState configuration_type = ModuleState.NONE,
|
||||
int configurationOffset = 0) {
|
||||
builder.StartTable(4);
|
||||
RobotModule.AddConfiguration(builder, configurationOffset);
|
||||
RobotModule.AddConfigurationType(builder, configuration_type);
|
||||
RobotModule.AddModuleType(builder, module_type);
|
||||
RobotModule.AddId(builder, id);
|
||||
return RobotModule.EndRobotModule(builder);
|
||||
}
|
||||
|
||||
public static void StartRobotModule(FlatBufferBuilder builder) { builder.StartTable(4); }
|
||||
public static void AddId(FlatBufferBuilder builder, byte id) { builder.AddByte(0, id, 0); }
|
||||
public static void AddModuleType(FlatBufferBuilder builder, ModuleType moduleType) { builder.AddSbyte(1, (sbyte)moduleType, 0); }
|
||||
public static void AddConfigurationType(FlatBufferBuilder builder, ModuleState configurationType) { builder.AddByte(2, (byte)configurationType, 0); }
|
||||
public static void AddConfiguration(FlatBufferBuilder builder, int configurationOffset) { builder.AddOffset(3, configurationOffset, 0); }
|
||||
public static Offset<RobotModule> EndRobotModule(FlatBufferBuilder builder) {
|
||||
int o = builder.EndTable();
|
||||
return new Offset<RobotModule>(o);
|
||||
}
|
||||
public static void FinishRobotModuleBuffer(FlatBufferBuilder builder, Offset<RobotModule> offset) { builder.Finish(offset.Value); }
|
||||
public static void FinishSizePrefixedRobotModuleBuffer(FlatBufferBuilder builder, Offset<RobotModule> offset) { builder.FinishSizePrefixed(offset.Value); }
|
||||
}
|
||||
|
||||
|
||||
static public class RobotModuleVerify
|
||||
{
|
||||
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
||||
{
|
||||
return verifier.VerifyTableStart(tablePos)
|
||||
&& verifier.VerifyField(tablePos, 4 /*Id*/, 1 /*byte*/, 1, false)
|
||||
&& verifier.VerifyField(tablePos, 6 /*ModuleType*/, 1 /*ModuleType*/, 1, false)
|
||||
&& verifier.VerifyField(tablePos, 8 /*ConfigurationType*/, 1 /*ModuleState*/, 1, false)
|
||||
&& verifier.VerifyUnion(tablePos, 8, 10 /*Configuration*/, ModuleStateVerify.Verify, false)
|
||||
&& verifier.VerifyTableEnd(tablePos);
|
||||
}
|
||||
}
|
||||
11
Assets/Flatbuffers_generated/RobotModule.cs.meta
Normal file
11
Assets/Flatbuffers_generated/RobotModule.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e1dfa9e19cd24fb580b2840d514b983
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user