Move 2D-only navigation code to its own subfolder

This commit is contained in:
Aaron Franke 2023-10-10 22:00:15 -05:00
parent 99addd6d9c
commit fd582dca62
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
6 changed files with 7 additions and 6 deletions

View File

@ -31,11 +31,11 @@
#ifndef GODOT_NAVIGATION_SERVER_2D_H
#define GODOT_NAVIGATION_SERVER_2D_H
#include "nav_agent.h"
#include "nav_link.h"
#include "nav_map.h"
#include "nav_obstacle.h"
#include "nav_region.h"
#include "../nav_agent.h"
#include "../nav_link.h"
#include "../nav_map.h"
#include "../nav_obstacle.h"
#include "../nav_region.h"
#include "servers/navigation_server_2d.h"

View File

@ -74,6 +74,7 @@ env.modules_sources += thirdparty_obj
module_obj = []
env_navigation.add_source_files(module_obj, "*.cpp")
env_navigation.add_source_files(module_obj, "2d/*.cpp")
if env.editor_build:
env_navigation.add_source_files(module_obj, "editor/*.cpp")
env.modules_sources += module_obj

View File

@ -30,8 +30,8 @@
#include "register_types.h"
#include "2d/godot_navigation_server_2d.h"
#include "godot_navigation_server.h"
#include "godot_navigation_server_2d.h"
#ifndef DISABLE_DEPRECATED
#ifndef _3D_DISABLED