mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-02 00:14:30 +08:00
完善技能树ui
This commit is contained in:
1 parent
394cda8a3c
commit
25b87669ce
2 files changed
+40
-8
No files matched your search
+29
-3
@@ -2,8 +2,34 @@ export default function init() {
|
||||
return { splitArea };
|
||||
}
|
||||
|
||||
function splitArea() {}
|
||||
interface MapBFSResult {
|
||||
maps: FloorIds[];
|
||||
link: Record<
|
||||
`${FloorIds}_${number}_${number}_${Dir}`,
|
||||
`${FloorIds}_${number}_${number}`
|
||||
>;
|
||||
}
|
||||
|
||||
function getMapData(floorId: FloorIds) {}
|
||||
const bfsCache: Partial<Record<FloorIds, MapBFSResult>> = {};
|
||||
|
||||
function bfs(floorId: FloorIds) {}
|
||||
export function splitArea() {}
|
||||
|
||||
export function getMapData(floorId: FloorIds) {}
|
||||
|
||||
export function getMapDrawData(floorId: FloorIds) {}
|
||||
|
||||
/**
|
||||
* 广度优先搜索地图信息
|
||||
* @param floorId 中心楼层id
|
||||
* @param noCache 是否不使用缓存
|
||||
*/
|
||||
function bfs(floorId: FloorIds, noCache: boolean = false) {
|
||||
if (bfsCache[floorId] && !noCache) return bfsCache[floorId];
|
||||
|
||||
const queue = [floorId];
|
||||
const used: Partial<Record<FloorIds, boolean>> = {};
|
||||
|
||||
while (queue.length > 0) {
|
||||
const now = queue.shift()!;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user