Ejemplo n.º 1
0
        /// <summary>
        /// Clones from one component to the other.
        /// </summary>
        /// <param name="optionsComponent">The component to clone from.</param>
        public void CloneFrom(PathOptionsComponent optionsComponent)
        {
            _pathingPriority                      = optionsComponent.pathingPriority;
            _usePathSmoothing                     = optionsComponent.usePathSmoothing;
            _allowCornerCutting                   = optionsComponent.allowCornerCutting;
            _preventDiagonalMoves                 = optionsComponent.preventDiagonalMoves;
            _navigateToNearestIfBlocked           = optionsComponent.navigateToNearestIfBlocked;
            _maxEscapeCellDistanceIfOriginBlocked = optionsComponent.maxEscapeCellDistanceIfOriginBlocked;

            _nextNodeDistance            = optionsComponent.nextNodeDistance;
            _requestNextWaypointDistance = optionsComponent.requestNextWaypointDistance;
            _announceAllNodes            = optionsComponent.announceAllNodes;

            _replanMode     = optionsComponent.replanMode;
            _replanInterval = optionsComponent.replanInterval;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Clones from one component to the other.
        /// </summary>
        /// <param name="optionsComponent">The component to clone from.</param>
        public void CloneFrom(PathOptionsComponent optionsComponent)
        {
            _pathingPriority = optionsComponent.pathingPriority;
            _usePathSmoothing = optionsComponent.usePathSmoothing;
            _allowCornerCutting = optionsComponent.allowCornerCutting;
            _preventDiagonalMoves = optionsComponent.preventDiagonalMoves;
            _navigateToNearestIfBlocked = optionsComponent.navigateToNearestIfBlocked;
            _maxEscapeCellDistanceIfOriginBlocked = optionsComponent.maxEscapeCellDistanceIfOriginBlocked;

            _nextNodeDistance = optionsComponent.nextNodeDistance;
            _requestNextWaypointDistance = optionsComponent.requestNextWaypointDistance;
            _announceAllNodes = optionsComponent.announceAllNodes;

            _replanMode = optionsComponent.replanMode;
            _replanInterval = optionsComponent.replanInterval;
        }