C# 클래스 SharpNav.NodePool

Link all nodes together. Store indices in hash map.
파일 보기 프로젝트 열기: Robmaister/SharpNav 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Reset all the data.

FindNode ( NavPolyId id ) : NavNode

Try to find a node.

GetNode ( NavPolyId id ) : NavNode

Try to find the node. If it doesn't exist, create a new node.

GetNodeAtIdx ( int idx ) : NavNode

Return a node at a certain index. If index is out-of-bounds, return null.

GetNodeIdx ( NavNode node ) : int

Gets the id of the node.

NodePool ( int maxNodes ) : System

Initializes a new instance of the NodePool class.

메소드 상세

Clear() 공개 메소드

Reset all the data.
public Clear ( ) : void
리턴 void

FindNode() 공개 메소드

Try to find a node.
public FindNode ( NavPolyId id ) : NavNode
id NavPolyId Node's id
리턴 NavNode

GetNode() 공개 메소드

Try to find the node. If it doesn't exist, create a new node.
public GetNode ( NavPolyId id ) : NavNode
id NavPolyId Node's id
리턴 NavNode

GetNodeAtIdx() 공개 메소드

Return a node at a certain index. If index is out-of-bounds, return null.
public GetNodeAtIdx ( int idx ) : NavNode
idx int Node index
리턴 NavNode

GetNodeIdx() 공개 메소드

Gets the id of the node.
public GetNodeIdx ( NavNode node ) : int
node NavNode The node
리턴 int

NodePool() 공개 메소드

Initializes a new instance of the NodePool class.
public NodePool ( int maxNodes ) : System
maxNodes int The maximum number of nodes that can be stored
리턴 System