summaryrefslogtreecommitdiff
path: root/src/serialization-static-ui.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-09-09 16:05:14 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-09-09 16:05:14 -0400
commit5daa12fed0449a7811fc25ec62236bc060a56fa7 (patch)
tree5af5ff1c4de2ab49dd4d1db9934b3b4ee34a54c2 /src/serialization-static-ui.cpp
parentc40277cd665e04d300ea839a1dd2ff675655f5fb (diff)
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.
Diffstat (limited to 'src/serialization-static-ui.cpp')
-rw-r--r--src/serialization-static-ui.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}