Exemplo n.º 1
0
 public static Offset <CozmoAnim.RobotAudio> CreateRobotAudio(FlatBufferBuilder builder,
                                                              uint triggerTime_ms             = 0,
                                                              VectorOffset audioEventIdOffset = default(VectorOffset),
                                                              float volume = 1.0f,
                                                              VectorOffset probabilityOffset = default(VectorOffset),
                                                              bool hasAlts = true)
 {
     builder.StartTable(5);
     RobotAudio.AddProbability(builder, probabilityOffset);
     RobotAudio.AddVolume(builder, volume);
     RobotAudio.AddAudioEventId(builder, audioEventIdOffset);
     RobotAudio.AddTriggerTimeMs(builder, triggerTime_ms);
     RobotAudio.AddHasAlts(builder, hasAlts);
     return(RobotAudio.EndRobotAudio(builder));
 }
Exemplo n.º 2
0
 public static RobotAudio GetRootAsRobotAudio(ByteBuffer _bb, RobotAudio obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }