summaryrefslogtreecommitdiffhomepage
path: root/loader/json.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-11 13:54:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-11 14:11:47 +0100
commit7867213a01fcabb1f05b1836c2ca59dc3bb2132f (patch)
tree44af754bed0278c8bf3435df6278bd291c3043e5 /loader/json.cpp
parent74cf06b6b217eff32a547cf73f051f27e6b80919 (diff)
rename tile_atlas -> ground_atlas
Diffstat (limited to 'loader/json.cpp')
-rw-r--r--loader/json.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/loader/json.cpp b/loader/json.cpp
index 7cf24015..8e2f329f 100644
--- a/loader/json.cpp
+++ b/loader/json.cpp
@@ -1,10 +1,10 @@
#include "impl.hpp"
#include "compat/assert.hpp"
#include "compat/exception.hpp"
-#include "src/tile-atlas.hpp"
+#include "src/ground-atlas.hpp"
#include "serialize/json-helper.hpp"
#include "serialize/anim.hpp"
-#include "serialize/tile-atlas.hpp"
+#include "serialize/ground-atlas.hpp"
#include "serialize/scenery.hpp"
#include "loader/scenery.hpp"
#include <Corrade/Containers/ArrayViewStl.h>
@@ -53,14 +53,14 @@ const scenery_proto& loader_impl::scenery(StringView name) noexcept(false)
return it->second->proto;
}
-ArrayView<const std::shared_ptr<class tile_atlas>> loader_impl::tile_atlases(StringView filename)
+ArrayView<const std::shared_ptr<class ground_atlas>> loader_impl::ground_atlases(StringView filename) noexcept(false)
{
- if (!tile_atlas_array.empty()) [[likely]]
- return tile_atlas_array;
- tile_atlas_array = json_helper::from_json<std::vector<std::shared_ptr<class tile_atlas>>>(
+ if (!ground_atlas_array.empty()) [[likely]]
+ return ground_atlas_array;
+ ground_atlas_array = json_helper::from_json<std::vector<std::shared_ptr<class ground_atlas>>>(
Path::join(loader_::IMAGE_PATH, filename));
- fm_assert(!tile_atlas_array.empty());
- return tile_atlas_array;
+ fm_assert(!ground_atlas_array.empty());
+ return ground_atlas_array;
}
} // namespace floormat::loader_detail