/// <summary> /// Copy constructor /// </summary> /// <param name="wl"></param> public WayPointList(WayPointList wl) { wayFinished = wl.wayFinished; wlDirection = wl.wlDirection; reset(); for (int i = 0; i < wl.lst.Count; i++) { add(new WayPoint(wl[i])); } }
public RC_posWaypointList(WayPointList wListQ) { wList = wListQ; //wList.wayFinished = 0; // typically you want this to re-loop back to start }