static MotorMotion[] create_motions(FReaction reaction) { var l = reaction.MotionsLength; var motions = new MotorMotion[l]; for (var i = 0; i < l; i++) { motions[i] = create_motion(reaction.Motions(i)); } return(motions); }
static IMotion[] deserialise_motions(FReaction reaction) { var l = reaction.MotionsLength; var motions = new IMotion[l]; for (var i = 0; i < l; i++) { motions[i] = deserialise_motion(reaction.Motions(i)); } return(motions); }