From 29adf0b0da110cedc8e8cc4f1ef7c62a6bc01eb5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 2 Mar 2024 08:30:22 +0100 Subject: [PATCH] Properly set up register_types.cpp for layered tile maps. --- modules/layered_tile_map/register_types.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/layered_tile_map/register_types.cpp b/modules/layered_tile_map/register_types.cpp index 140758d8a..f24529ff3 100644 --- a/modules/layered_tile_map/register_types.cpp +++ b/modules/layered_tile_map/register_types.cpp @@ -31,21 +31,28 @@ #include "register_types.h" -#include "geometry_parser/tilemap_navigation_geometry_parser_2d.h" +#include "geometry_parser/layered_tilemap_navigation_geometry_parser_2d.h" #include "servers/navigation/navigation_mesh_generator.h" -#include "tile_map.h" -#include "tile_set.h" +#include "layered_tile_map_layer_group.h" +#include "layered_tile_map_layer.h" +#include "layered_tile_map.h" +#include "layered_tile_set.h" #ifdef TOOLS_ENABLED -#include "tile_map_editor_plugin.h" -#include "tile_set_editor_plugin.h" +#include "editor/layered_tiles_editor_plugin.h" #endif void register_tile_map_types(ModuleRegistrationLevel p_level) { if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) { + ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); NavigationMeshGenerator::get_singleton()->register_geometry_parser_2d(memnew(LayeredTileMap2DNavigationGeometryParser2D)); }