From 9a231ffd8bd35108092d218c834544657bfb5986 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Jan 2024 12:01:33 +0100 Subject: c --- editor/app.cpp | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'editor/app.cpp') diff --git a/editor/app.cpp b/editor/app.cpp index 94e78576..44df5c5e 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -1,22 +1,18 @@ #include "app.hpp" #include "compat/assert.hpp" #include "compat/sysexits.hpp" -#include "src/world.hpp" +#include "editor.hpp" #include "src/anim-atlas.hpp" #include "src/critter.hpp" +#include "src/world.hpp" #include "floormat/main.hpp" #include "floormat/settings.hpp" #include "loader/loader.hpp" -#include "draw/wireframe-meshes.hpp" -#include "editor.hpp" - #include #include -#include #include #include #include -#include namespace floormat { @@ -31,29 +27,6 @@ Optional cursor_state::point() const floormat_main& app::main() { return *M; } const cursor_state& app::cursor_state() { return cursor; } -app::app(fm_settings&& opts) : - M{floormat_main::create(*this, Utility::move(opts))}, - _wireframe{InPlaceInit}, - _tests{tests_data_::make()}, - _editor{InPlaceInit, this} -{ - reset_world(); - auto& w = M->world(); - constexpr chunk_coords_ coord{0, 0, 0}; - maybe_initialize_chunk_(coord, w[coord]); - reset_camera_offset(); - M->set_render_vobjs(_render_vobjs); - inspectors.reserve(16); -} - -app::~app() -{ -} - -void app::reset_world() -{ - reset_world(world{}); -} std::shared_ptr app::ensure_player_character(world& w) { -- cgit v1.2.3