From 7681d71704b4107356f32ac08f723bebcdeff0c0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 15 Apr 2025 10:32:31 +0200 Subject: [PATCH] Temporary comments. --- modules/terraman/world/terrain_world.cpp | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/modules/terraman/world/terrain_world.cpp b/modules/terraman/world/terrain_world.cpp index 2a62980c9..8a61a18f4 100644 --- a/modules/terraman/world/terrain_world.cpp +++ b/modules/terraman/world/terrain_world.cpp @@ -52,6 +52,12 @@ #include "../../props/props/prop_data_light.h" #include "../../props/props/prop_data_prop.h" #include "../../props/props/prop_data_scene.h" + +#ifdef MODULE_ENTITY_SPELL_SYSTEM_ENABLED +#include "modules/entity_spell_system/props/prop_data_ess_entity_world_spawner_3d_single.h" +#include "modules/entity_spell_system/props/prop_data_ess_entity_world_spawner_3d_area.h" +#endif + #endif #ifdef MODULE_MESH_DATA_RESOURCE_ENABLED @@ -69,6 +75,8 @@ #include "scene/resources/world_3d.h" #endif + + const String TerrainWorld::BINDING_STRING_CHANNEL_TYPE_INFO = "Type,Isolevel,Liquid,Liquid Level"; bool TerrainWorld::get_active() const { @@ -870,6 +878,27 @@ void TerrainWorld::prop_add(Transform transform, const Ref &prop, cons continue; } #endif + +#ifdef MODULE_ENTITY_SPELL_SYSTEM_ENABLED + /* + TODO Chunks will need a new api for this. Props that should just create nodes using processor_get_node_for(). + node_props / managed_props / instanced_props? + + Ref world_Spawner_single_data = entry; + + if (world_Spawner_single_data.is_valid()) { + Node *n = sc->processor_get_node_for(t); + add_child(n); + n->set_owner(this); + + chunk->scene_add(sc, t, n, false); + + continue; + } + + Ref world_Spawner_area_data = entry; + */ +#endif } } #endif