Esempio n. 1
0
 public static Offset <CozmoAnim.Keyframes> CreateKeyframes(FlatBufferBuilder builder,
                                                            VectorOffset LiftHeightKeyFrameOffset            = default(VectorOffset),
                                                            VectorOffset ProceduralFaceKeyFrameOffset        = default(VectorOffset),
                                                            VectorOffset HeadAngleKeyFrameOffset             = default(VectorOffset),
                                                            VectorOffset RobotAudioKeyFrameOffset            = default(VectorOffset),
                                                            VectorOffset BackpackLightsKeyFrameOffset        = default(VectorOffset),
                                                            VectorOffset FaceAnimationKeyFrameOffset         = default(VectorOffset),
                                                            VectorOffset EventKeyFrameOffset                 = default(VectorOffset),
                                                            VectorOffset BodyMotionKeyFrameOffset            = default(VectorOffset),
                                                            VectorOffset RecordHeadingKeyFrameOffset         = default(VectorOffset),
                                                            VectorOffset TurnToRecordedHeadingKeyFrameOffset = default(VectorOffset))
 {
     builder.StartTable(10);
     Keyframes.AddTurnToRecordedHeadingKeyFrame(builder, TurnToRecordedHeadingKeyFrameOffset);
     Keyframes.AddRecordHeadingKeyFrame(builder, RecordHeadingKeyFrameOffset);
     Keyframes.AddBodyMotionKeyFrame(builder, BodyMotionKeyFrameOffset);
     Keyframes.AddEventKeyFrame(builder, EventKeyFrameOffset);
     Keyframes.AddFaceAnimationKeyFrame(builder, FaceAnimationKeyFrameOffset);
     Keyframes.AddBackpackLightsKeyFrame(builder, BackpackLightsKeyFrameOffset);
     Keyframes.AddRobotAudioKeyFrame(builder, RobotAudioKeyFrameOffset);
     Keyframes.AddHeadAngleKeyFrame(builder, HeadAngleKeyFrameOffset);
     Keyframes.AddProceduralFaceKeyFrame(builder, ProceduralFaceKeyFrameOffset);
     Keyframes.AddLiftHeightKeyFrame(builder, LiftHeightKeyFrameOffset);
     return(Keyframes.EndKeyframes(builder));
 }
Esempio n. 2
0
 public static Keyframes GetRootAsKeyframes(ByteBuffer _bb, Keyframes obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }