コード例 #1
0
 public static Offset <BodyMotion> CreateBodyMotion(FlatBufferBuilder builder,
                                                    uint triggerTime_ms          = 0,
                                                    uint durationTime_ms         = 0,
                                                    StringOffset radius_mmOffset = default(StringOffset),
                                                    short speed = 0)
 {
     builder.StartObject(4);
     BodyMotion.AddRadiusMm(builder, radius_mmOffset);
     BodyMotion.AddDurationTimeMs(builder, durationTime_ms);
     BodyMotion.AddTriggerTimeMs(builder, triggerTime_ms);
     BodyMotion.AddSpeed(builder, speed);
     return(BodyMotion.EndBodyMotion(builder));
 }
コード例 #2
0
 public static BodyMotion GetRootAsBodyMotion(ByteBuffer _bb, BodyMotion obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }