public static Offset <CozmoAnim.BackpackLights> CreateBackpackLights(FlatBufferBuilder builder, uint triggerTime_ms = 0, uint durationTime_ms = 0, VectorOffset LeftOffset = default(VectorOffset), VectorOffset RightOffset = default(VectorOffset), VectorOffset FrontOffset = default(VectorOffset), VectorOffset MiddleOffset = default(VectorOffset), VectorOffset BackOffset = default(VectorOffset)) { builder.StartTable(7); BackpackLights.AddBack(builder, BackOffset); BackpackLights.AddMiddle(builder, MiddleOffset); BackpackLights.AddFront(builder, FrontOffset); BackpackLights.AddRight(builder, RightOffset); BackpackLights.AddLeft(builder, LeftOffset); BackpackLights.AddDurationTimeMs(builder, durationTime_ms); BackpackLights.AddTriggerTimeMs(builder, triggerTime_ms); return(BackpackLights.EndBackpackLights(builder)); }
public static BackpackLights GetRootAsBackpackLights(ByteBuffer _bb, BackpackLights obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }