コード例 #1
0
 public StrategySettings(StrategySettings other)
 {
     AllowedTransitions = other.AllowedTransitions;
     Run            = other.Run;
     Reset          = other.Reset;
     PreferredSpeed = other.PreferredSpeed;
     PreferredManeuverSecondDistance = other.PreferredManeuverSecondDistance;
     PartialUpdate         = other.PartialUpdate;
     VersionNumber         = other.VersionNumber;
     CustomTransitionQueue = new List <StateTransition>(other.CustomTransitionQueue);
 }
コード例 #2
0
        public void SetParameters(StrategySettings other)
        {
            if (other.VersionNumber < VersionNumber)
            {
                return;
            }

            if (!other.PartialUpdate)
            {
                AllowedTransitions = other.AllowedTransitions;
                Reset          = other.Reset;
                Run            = other.Run;
                PreferredSpeed = other.PreferredSpeed;
                PreferredManeuverSecondDistance = other.PreferredManeuverSecondDistance;
            }

            CustomTransitionQueue = new List <StateTransition>(other.CustomTransitionQueue);
            VersionNumber         = other.VersionNumber;
        }