diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-02 20:46:41 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-02 20:46:41 -0400 |
| commit | a02c7589c6c9e902c59a632aa650635336fe648c (patch) | |
| tree | 8ec4800ff9f9effbd9141e02131123448679bc93 /editor/editor-types.hpp | |
| parent | fad302f7db146a78900f9b21dbbcd97761093c1b (diff) | |
pke: checkpoint: major serialization refactor
Diffstat (limited to 'editor/editor-types.hpp')
| -rw-r--r-- | editor/editor-types.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 */ |
