diff options
Diffstat (limited to 'editor/app.hpp')
-rw-r--r-- | editor/app.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/app.hpp b/editor/app.hpp index b2fcf480..663b4923 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -20,6 +20,7 @@ struct chunk; struct floormat_main; struct tile_atlas; struct tile_editor; +struct fm_settings; struct cursor_state final { std::optional<Vector2i> pixel; @@ -29,14 +30,14 @@ struct cursor_state final { struct app final : floormat_app { - app(); + app(fm_settings&& opts); ~app() override; fm_DECLARE_DELETED_COPY_ASSIGNMENT(app); fm_DECLARE_DEPRECATED_MOVE_ASSIGNMENT(app); void update(float dt) override; - void maybe_init_chunk(const chunk_coords& pos, chunk& c) override; + void maybe_initialize_chunk(const chunk_coords& pos, chunk& c) override; void draw_msaa() override; void draw() override; @@ -67,6 +68,8 @@ private: MAX = quit, COUNT }; + void maybe_initialize_chunk_(const chunk_coords& pos, chunk& c); + void do_mouse_click(global_coords pos, int button); void do_mouse_release(int button); void do_mouse_move(global_coords pos); |