public Result < List < Long > > getPathFromDijkstraSearch ( long endRef ) { if ( ! m_nav . isValidPolyRef ( endRef ) ) { return Result . invalidParam ( "Invalid end ref" ) ; } List < Node > nodes = m_nodePool . findNodes ( endRef ) ; if ( nodes . size ( ) != 1 ) { return Result . invalidParam ( "Invalid end ref" ) ; } Node endNode = nodes . get ( 0 ) ; if ( ( endNode . flags & DT_NODE_CLOSED ) == 0 ) { return Result . invalidParam ( "Invalid end ref" ) ; } return Result . success ( getPathToNode ( endNode ) ) ; }
Gets a path from the explored nodes in the previous search .