平铺树主要是未了方便找节点,相对迭代效率高,而且适应性更强
export function flatTree(treeRoots: PatrolGridTree[]): PatrolGridTree[] {
let nodes: PatrolGridTree[] = []
nodes = nodes.concat(treeRoots)
for (let i = 0; i < nodes
平铺树主要是未了方便找节点,相对迭代效率高,而且适应性更强
export function flatTree(treeRoots: PatrolGridTree[]): PatrolGridTree[] {
let nodes: PatrolGridTree[] = []
nodes = nodes.concat(treeRoots)
for (let i = 0; i < nodes