From 5daa12fed0449a7811fc25ec62236bc060a56fa7 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 9 Sep 2025 16:05:14 -0400 Subject: pke: first-pass promote pke_level over pke_scene Major runtime ownership overhaul (scene -> level). Major ecs 'marked for removal' overhaul, ensuring that entities and their components are actually being removed when levels are unloaded. --- src/serialization-static-ui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/serialization-static-ui.cpp') diff --git a/src/serialization-static-ui.cpp b/src/serialization-static-ui.cpp index 1fa7cfd..67c0c1e 100644 --- a/src/serialization-static-ui.cpp +++ b/src/serialization-static-ui.cpp @@ -1,9 +1,9 @@ #include "serialization-static-ui.hpp" -#include "asset-manager.hpp" #include "compile-time-assert.hpp" #include "ecs.hpp" #include "font.hpp" +#include "level.hpp" #include "pk.h" #include "serialization.hpp" #include "static-ui.hpp" @@ -482,6 +482,7 @@ void pke_deserialize_ui_box(srlztn_deserialize_helper *h, pke_kve_container *kve pke_ui_box *box; if (parent_box == nullptr) { box = pke_ui_box_new_root(bx.type, bx.uuid); + pke_level_register_root_ui_box(h->level, box); } else { box = pke_ui_box_new_child(parent_box, bx.type, bx.uuid); } -- cgit v1.2.3