Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move NavigationServer mesh queries to dedicated file #96355

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Aug 30, 2024

Moves all the navigation mesh query related read-only functions from NavMap and NavRegion to a dedicated file and makes them static.

This is done ...

  • in preparation for async and threading related changes that requires things to be static / read-only.
  • to debloat the NavMap and NavRegion files and make rebasing less of a hassle with them.
  • to prep for and avoid code duplicates with the region queries from Add navigation region point and segment queries #96092.

I applied most of the rename suggestions from that linked region PR already here to the existing code that switched files.

For now I left the functions stumps on the NavMap and NavRegion to forward the function calls as I don't want to do an entire workaround for thread-safety and change things twice soon™.

@smix8 smix8 added this to the 4.4 milestone Aug 30, 2024
@smix8 smix8 requested a review from a team August 30, 2024 22:35
@smix8 smix8 force-pushed the nav_mesh_queries branch from e746265 to 7497954 Compare August 31, 2024 18:56
@smix8 smix8 force-pushed the nav_mesh_queries branch from 7497954 to 2f6ee09 Compare August 31, 2024 19:13
Moves all the navigation mesh query related functions from NavMap and NavRegion to a dedicated file and makes them static.
@akien-mga akien-mga merged commit 885d38b into godotengine:master Sep 3, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@smix8 smix8 deleted the nav_mesh_queries branch September 3, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants