# Class UIMap

用于树形结构两节点之间的寻路功能

#### Hierarchy

- UIMap

- Defined in assets/core/gui/layer/UIMap.ts:25

#####
Index

### Constructors

constructor

### Properties

manager
nodes

### Methods

findUp
init
pathFinding
release

## Constructors

### constructor

- new UIMap(): UIMap

- #### Returns UIMap

## Properties

### `Private` manager

manager: LayerManager

UI层级管理器

- Defined in assets/core/gui/layer/UIMap.ts:27

### `Private` nodes

nodes: Map<number, TreeNode> = ...

界面节点树

- Defined in assets/core/gui/layer/UIMap.ts:29

## Methods

### `Private` findUp

- findUp(start: TreeNode): TreeNode[]

- 向上寻找子节点直到根节点停止，并返回节点路径数组

  #### Parameters

  - ##### start: TreeNode

  #### Returns TreeNode[]

  - Defined in assets/core/gui/layer/UIMap.ts:79

### init

- init(manager: LayerManager, data: any): void

- 创建UI关系树

  #### Parameters

  - ##### manager: LayerManager

  - ##### data: any

  #### Returns void

  - Defined in assets/core/gui/layer/UIMap.ts:32

### pathFinding

- pathFinding(startId: number, endId: number): any

- 树节点寻路

  ### Returns

  #### Parameters

  - ##### startId: number

    起始节点编号

  - ##### endId: number

    结束节点编号

  #### Returns any

  - Defined in assets/core/gui/layer/UIMap.ts:60

### release

- release(): void

- 释放所有节点

  #### Returns void

  - Defined in assets/core/gui/layer/UIMap.ts:90

Generated using TypeDoc