feat: 添加寻路服务器

This commit is contained in:
flswld committed 2024-12-13 15:12:17 +08:00
1 parent 6a723ac078
commit b52e1f7059
32 files changed
+11671 -83

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ func NewBFS() (r *BFS) {
return r
}
func (b *BFS) InitMap(terrain map[MeshVector]bool, start MeshVector, end MeshVector, extR int16) {
func (b *BFS) InitMap(terrain map[MeshVector]struct{}, start MeshVector, end MeshVector, extR int16) {
xLen := end.X - start.X
yLen := end.Y - start.Y
zLen := end.Z - start.Z