summaryrefslogtreecommitdiffhomepage
path: root/editor/ctor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-02 16:34:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-02 22:35:39 +0200
commit6abcd7d52cda334c58ec999d212491fc24f13c9d (patch)
tree86998508afe8eb7447ad70a2d5beebdbc9995a8f /editor/ctor.cpp
parent03b67a512ec9ef1cf5c337aa5c47a5a76d4a8a61 (diff)
script lifecycle mostly implemented
Diffstat (limited to 'editor/ctor.cpp')
-rw-r--r--editor/ctor.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/editor/ctor.cpp b/editor/ctor.cpp
index 6e7e435f..a10f94cf 100644
--- a/editor/ctor.cpp
+++ b/editor/ctor.cpp
@@ -18,7 +18,7 @@ app::app(fm_settings&& opts) :
keys_{InPlaceInit, 0u},
key_modifiers{}
{
- reset_world();
+ reset_world_post();
auto& w = M->world();
constexpr chunk_coords_ coord{0, 0, 0};
maybe_initialize_chunk_(coord, w[coord]);
@@ -29,12 +29,7 @@ app::app(fm_settings&& opts) :
app::~app()
{
+ reset_world_pre();
}
-void app::reset_world()
-{
- reset_world(world{});
-}
-
-
} // namespace floormat