summaryrefslogtreecommitdiffhomepage
path: root/main/setup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/setup.cpp')
-rw-r--r--main/setup.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/setup.cpp b/main/setup.cpp
index 8e0e36b9..1f0adcb4 100644
--- a/main/setup.cpp
+++ b/main/setup.cpp
@@ -98,4 +98,16 @@ auto main_impl::meshes() noexcept -> struct meshes
return { _floor_mesh, _wall_mesh, _anim_mesh, };
};
+struct world& main_impl::reset_world() noexcept
+{
+ return reset_world(floormat::world{});
+}
+
+struct world& main_impl::reset_world(struct world w) noexcept
+{
+ _clickable_scenery.clear();
+ _world = std::move(w);
+ return _world;
+}
+
} // namespace floormat