summaryrefslogtreecommitdiffhomepage
path: root/loader/atlas-loader-storage.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-11 06:47:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-11 08:49:52 +0100
commitb2be7d57642197c0f65d2645c767c4f868ababb1 (patch)
treeb711d99a22fe1de220e6458a6e5848b4e3af6b12 /loader/atlas-loader-storage.hpp
parent0de0eb1fe18949a328b9e76a2dbf6319692cc3cb (diff)
implement anim_loader
Diffstat (limited to 'loader/atlas-loader-storage.hpp')
-rw-r--r--loader/atlas-loader-storage.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/loader/atlas-loader-storage.hpp b/loader/atlas-loader-storage.hpp
index c5e45cc2..ca3ccbab 100644
--- a/loader/atlas-loader-storage.hpp
+++ b/loader/atlas-loader-storage.hpp
@@ -10,7 +10,10 @@ namespace floormat::loader_detail {
template<typename ATLAS, typename TRAITS>
struct atlas_storage
{
+ static_assert(std::is_same_v<typename TRAITS::Atlas, ATLAS>);
+
using Traits = TRAITS;
+ using Atlas = typename TRAITS::Atlas;
using Cell = typename TRAITS::Cell;
tsl::robin_map<StringView, size_t, hash_string_view> name_map;