Beispiel #1
0
        public Waypoint([NotNull] Course course, [NotNull] Tools.Courseplay.v2019.Waypoint waypoint)
        {
            Course = course ?? throw new ArgumentNullException(nameof(course));
            if (waypoint == null)
            {
                throw new ArgumentNullException(nameof(waypoint));
            }

            Load(waypoint);
        }
Beispiel #2
0
        public void Load([NotNull] Tools.Courseplay.v2019.Waypoint waypoint)
        {
            if (waypoint == null)
            {
                throw new ArgumentNullException(nameof(waypoint));
            }

            Speed       = waypoint.Speed;
            Angle       = waypoint.Angle;
            Point       = new SKPoint3(waypoint.PointX, waypoint.PointY, waypoint.PointZ);
            Reverse     = ToBool(waypoint.Reverse);
            Crossing    = ToBool(waypoint.Crossing);
            TurnStart   = ToBool(waypoint.TurnStart);
            TurnEnd     = ToBool(waypoint.TurnEnd);
            Wait        = ToBool(waypoint.Wait);
            Unload      = ToBool(waypoint.Unload);
            Generated   = waypoint.Generated;
            Ridgemarker = waypoint.Ridgemarker;
        }