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. --- editor/editor-types.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/editor-types.hpp') diff --git a/editor/editor-types.hpp b/editor/editor-types.hpp index ff8239b..f84b7d3 100644 --- a/editor/editor-types.hpp +++ b/editor/editor-types.hpp @@ -6,8 +6,8 @@ // TODO editor state (scene vs level) struct editor_master { - pke_scene *active_scene; - pk_str target_scene_path; + pke_scene *active_scene = nullptr; + pk_str target_scene_path = {}; bool shouldLoadScene = false; bool shouldSaveScene = false; }; -- cgit v1.2.3