summaryrefslogtreecommitdiffhomepage
path: root/loader/loader.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-07 23:38:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-08 08:43:49 +0100
commita6514d1a95d0f84f0935866215463ef6aed23e19 (patch)
tree639075646b1ea42a3cd4a76ae59af7dda0c4b14a /loader/loader.cpp
parent4575194adb4615deeca174044a872093c3664ad4 (diff)
loader: work toward removing duplicate atlas code
Diffstat (limited to 'loader/loader.cpp')
-rw-r--r--loader/loader.cpp32
1 files changed, 3 insertions, 29 deletions
diff --git a/loader/loader.cpp b/loader/loader.cpp
index 531d731a..8b711206 100644
--- a/loader/loader.cpp
+++ b/loader/loader.cpp
@@ -1,35 +1,9 @@
#include "impl.hpp"
-#include "ground-info.hpp"
-#include "wall-info.hpp"
-#include "anim-info.hpp"
+#include "ground-cell.hpp"
+#include "loader/wall-cell.hpp"
+#include "anim-cell.hpp"
#include "scenery.hpp"
-namespace floormat::loader_detail {
-
-void loader_impl::destroy()
-{
- wall_atlas_map.clear();
- wall_atlas_array.clear();
- invalid_wall_atlas = nullptr;
- missing_wall_atlases.clear();
-
- ground_atlas_map.clear();
- ground_atlas_array.clear();
- invalid_ground_atlas = nullptr;
- missing_ground_atlases.clear();
-
- anim_atlas_map.clear();
- anim_atlases.clear();
- invalid_anim_atlas = nullptr;
- sceneries_map.clear();
- sceneries_array.clear();
-
- vobj_atlas_map.clear();
- vobjs.clear();
-}
-
-} // namespace floormat::loader_detail
-
namespace floormat {
using loader_detail::loader_impl;