Пример #1
0
 /** Links this NodeRun with the specified node.
  * \param node Node to link to
  * \param index Index of this NodeRun in the nodeRuns array in Pathfinding::AstarData
  */
 public void Link(Node node, int index)
 {
     if (index != node.GetNodeIndex())
     {
         throw new System.Exception("Node indices out of sync when creating NodeRun data (node index != specified index)");
     }
 }
Пример #2
0
 /** Links this NodeRun with the specified node.
  * \param node Node to link to
  * \param index Index of this NodeRun in the nodeRuns array in Pathfinding::AstarData
  */
 public void Link(Node node, int index)
 {
     #if !SingleCoreOptimize
     this.node = node;
     #endif
     if (index != node.GetNodeIndex ())
         throw new System.Exception ("Node indices out of sync when creating NodeRun data (node index != specified index)");
 }
Пример #3
0
        /** Links this NodeRun with the specified node.
         * \param node Node to link to
         * \param index Index of this NodeRun in the nodeRuns array in Pathfinding::AstarData
         */
        public void Link(Node node, int index)
        {
#if !SingleCoreOptimize
            this.node = node;
#endif
            if (index != node.GetNodeIndex())
            {
                throw new System.Exception("Node indices out of sync when creating NodeRun data (node index != specified index)");
            }
        }
Пример #4
0
        /** Links this NodeRun with the specified node.
         * \param node Node to link to
         * \param index Index of this NodeRun in the nodeRuns array in Pathfinding.AstarData
         */
        public void Link(Node node, int index)
        {
#if !ASTAR_SINGLE_THREAD_OPTIMIZE
            this.node = node;
#endif
            if (index != node.GetNodeIndex())
            {
                throw new System.Exception("Node indices out of sync when creating NodeRun data (node index != specified index)");
            }
        }
Пример #5
0
		/** Links this NodeRun with the specified node.
		 * \param node Node to link to
		 * \param index Index of this NodeRun in the nodeRuns array in Pathfinding.AstarData
		 */
		public void Link (Node node, int index) {
			if (index != node.GetNodeIndex ())
				throw new System.Exception ("Node indices out of sync when creating NodeRun data (node index != specified index)");
		}
Пример #6
0
 /** Links this NodeRun with the specified node.
  * \param node Node to link to
  * \param index Index of this NodeRun in the nodeRuns array in Pathfinding.AstarData
  */
 public void Link(Node node, int index)
 {
     #if !ASTAR_SINGLE_THREAD_OPTIMIZE
     this.node = node;
     #endif
     if (index != node.GetNodeIndex ())
         throw new System.Exception ("Node indices out of sync when creating NodeRun data (node index != specified index)");
 }