Example #1
0
 public static Offset <RobotAudio> CreateRobotAudio(FlatBufferBuilder builder,
                                                    uint triggerTime_ms            = 0,
                                                    VectorOffset eventGroupsOffset = default(VectorOffset),
                                                    VectorOffset statesOffset      = default(VectorOffset),
                                                    VectorOffset switchesOffset    = default(VectorOffset),
                                                    VectorOffset parametersOffset  = default(VectorOffset))
 {
     builder.StartObject(5);
     RobotAudio.AddParameters(builder, parametersOffset);
     RobotAudio.AddSwitches(builder, switchesOffset);
     RobotAudio.AddStates(builder, statesOffset);
     RobotAudio.AddEventGroups(builder, eventGroupsOffset);
     RobotAudio.AddTriggerTimeMs(builder, triggerTime_ms);
     return(RobotAudio.EndRobotAudio(builder));
 }
Example #2
0
 public static RobotAudio GetRootAsRobotAudio(ByteBuffer _bb, RobotAudio obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }