From a02c7589c6c9e902c59a632aa650635336fe648c Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 2 Apr 2025 20:46:41 -0400 Subject: pke: checkpoint: major serialization refactor --- editor/editor-types.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 editor/editor-types.hpp (limited to 'editor/editor-types.hpp') diff --git a/editor/editor-types.hpp b/editor/editor-types.hpp new file mode 100644 index 0000000..ff8239b --- /dev/null +++ b/editor/editor-types.hpp @@ -0,0 +1,16 @@ +#ifndef PKE_EDITOR_EDITOR_TYPES_HPP +#define PKE_EDITOR_EDITOR_TYPES_HPP + +#include "scene-types.hpp" +#include "pk.h" + +// TODO editor state (scene vs level) +struct editor_master { + pke_scene *active_scene; + pk_str target_scene_path; + bool shouldLoadScene = false; + bool shouldSaveScene = false; +}; +extern struct editor_master editor_mstr; + +#endif /* PKE_EDITOR_EDITOR_TYPES_HPP */ -- cgit v1.2.3