Moved more includes from headers to cpp files.

This commit is contained in:
Relintai 2022-03-17 08:38:34 +01:00
parent 2c1eb4182b
commit 38fc0c402e
15 changed files with 23 additions and 7 deletions

View File

@ -46,6 +46,7 @@
#include "scene/resources/resource_format_text.h" #include "scene/resources/resource_format_text.h"
#include "scene/resources/sphere_shape.h" #include "scene/resources/sphere_shape.h"
#include "scene/resources/navigation_mesh.h" #include "scene/resources/navigation_mesh.h"
#include "scene/3d/navigation_mesh_instance.h"
uint32_t EditorSceneImporter::get_import_flags() const { uint32_t EditorSceneImporter::get_import_flags() const {
if (get_script_instance()) { if (get_script_instance()) {

View File

@ -31,6 +31,7 @@
#include "room_manager_editor_plugin.h" #include "room_manager_editor_plugin.h"
#include "editor/spatial_editor_gizmos.h" #include "editor/spatial_editor_gizmos.h"
#include "scene/resources/occluder_shape.h"
void RoomManagerEditorPlugin::_flip_portals() { void RoomManagerEditorPlugin::_flip_portals() {
if (_room_manager) { if (_room_manager) {

View File

@ -66,6 +66,7 @@
#include "scene/resources/sphere_shape.h" #include "scene/resources/sphere_shape.h"
#include "scene/resources/surface_tool.h" #include "scene/resources/surface_tool.h"
#include "scene/resources/navigation_mesh.h" #include "scene/resources/navigation_mesh.h"
#include "scene/main/viewport.h"
#define HANDLE_HALF_SIZE 9.5 #define HANDLE_HALF_SIZE 9.5

View File

@ -31,6 +31,7 @@
#include "listener.h" #include "listener.h"
#include "scene/resources/mesh.h" #include "scene/resources/mesh.h"
#include "scene/main/viewport.h"
void Listener::_update_audio_listener_state() { void Listener::_update_audio_listener_state() {
} }

View File

@ -32,7 +32,8 @@
#define LISTENER_H #define LISTENER_H
#include "scene/3d/spatial.h" #include "scene/3d/spatial.h"
#include "scene/main/viewport.h"
class Viewport;
class Listener : public Spatial { class Listener : public Spatial {
GDCLASS(Listener, Spatial); GDCLASS(Listener, Spatial);

View File

@ -31,6 +31,7 @@
#include "navigation.h" #include "navigation.h"
#include "servers/navigation_server.h" #include "servers/navigation_server.h"
#include "scene/3d/navigation_mesh_instance.h"
Vector<Vector3> Navigation::get_simple_path(const Vector3 &p_start, const Vector3 &p_end, bool p_optimize) const { Vector<Vector3> Navigation::get_simple_path(const Vector3 &p_start, const Vector3 &p_end, bool p_optimize) const {
return NavigationServer::get_singleton()->map_get_path(map, p_start, p_end, p_optimize); return NavigationServer::get_singleton()->map_get_path(map, p_start, p_end, p_optimize);

View File

@ -31,7 +31,6 @@
#ifndef NAVIGATION_H #ifndef NAVIGATION_H
#define NAVIGATION_H #define NAVIGATION_H
#include "scene/3d/navigation_mesh_instance.h"
#include "scene/3d/spatial.h" #include "scene/3d/spatial.h"
class Navigation : public Spatial { class Navigation : public Spatial {

View File

@ -34,6 +34,7 @@
#include "scene/3d/navigation.h" #include "scene/3d/navigation.h"
#include "scene/3d/physics_body.h" #include "scene/3d/physics_body.h"
#include "servers/navigation_server.h" #include "servers/navigation_server.h"
#include "scene/3d/spatial.h"
void NavigationObstacle::_bind_methods() { void NavigationObstacle::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_navigation", "navigation"), &NavigationObstacle::set_navigation_node); ClassDB::bind_method(D_METHOD("set_navigation", "navigation"), &NavigationObstacle::set_navigation_node);

View File

@ -31,10 +31,10 @@
#ifndef NAVIGATION_OBSTACLE_H #ifndef NAVIGATION_OBSTACLE_H
#define NAVIGATION_OBSTACLE_H #define NAVIGATION_OBSTACLE_H
#include "scene/3d/spatial.h"
#include "scene/main/node.h" #include "scene/main/node.h"
class Navigation; class Navigation;
class Spatial;
class NavigationObstacle : public Node { class NavigationObstacle : public Node {
GDCLASS(NavigationObstacle, Node); GDCLASS(NavigationObstacle, Node);

View File

@ -32,6 +32,7 @@
#include "core/engine.h" #include "core/engine.h"
#include "servers/visual/portals/portal_occlusion_culler.h" #include "servers/visual/portals/portal_occlusion_culler.h"
#include "scene/resources/occluder_shape.h"
void Occluder::resource_changed(RES res) { void Occluder::resource_changed(RES res) {
update_gizmo(); update_gizmo();

View File

@ -32,7 +32,9 @@
#define OCCLUDER_H #define OCCLUDER_H
#include "scene/3d/spatial.h" #include "scene/3d/spatial.h"
#include "scene/resources/occluder_shape.h" #include "core/reference.h"
class OccluderShape;
class Occluder : public Spatial { class Occluder : public Spatial {
GDCLASS(Occluder, Spatial); GDCLASS(Occluder, Spatial);

View File

@ -32,6 +32,7 @@
#include "core/engine.h" #include "core/engine.h"
#include "scene/scene_string_names.h" #include "scene/scene_string_names.h"
#include "scene/resources/curve.h"
void Path::_notification(int p_what) { void Path::_notification(int p_what) {
} }

View File

@ -32,7 +32,9 @@
#define PATH_H #define PATH_H
#include "scene/3d/spatial.h" #include "scene/3d/spatial.h"
#include "scene/resources/curve.h" #include "core/reference.h"
class Curve3D;
class Path : public Spatial { class Path : public Spatial {
GDCLASS(Path, Spatial); GDCLASS(Path, Spatial);

View File

@ -37,6 +37,8 @@
#include "core/object.h" #include "core/object.h"
#include "core/rid.h" #include "core/rid.h"
#include "scene/scene_string_names.h" #include "scene/scene_string_names.h"
#include "scene/resources/physics_material.h"
#include "skeleton.h"
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
#include "editor/plugins/spatial_editor_plugin.h" #include "editor/plugins/spatial_editor_plugin.h"

View File

@ -33,9 +33,11 @@
#include "core/vset.h" #include "core/vset.h"
#include "scene/3d/collision_object.h" #include "scene/3d/collision_object.h"
#include "scene/resources/physics_material.h" #include "core/reference.h"
#include "servers/physics_server.h" #include "servers/physics_server.h"
#include "skeleton.h"
class PhysicsMaterial;
class Skeleton;
class PhysicsBody : public CollisionObject { class PhysicsBody : public CollisionObject {
GDCLASS(PhysicsBody, CollisionObject); GDCLASS(PhysicsBody, CollisionObject);