summaryrefslogtreecommitdiffhomepage
path: root/loader/anim-traits.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-13 07:02:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-13 07:02:14 +0100
commit9b70fb78e70a509ba5bfa1c1d0a839eddd0902dc (patch)
tree8b662923591c273e8761787d3e74f3b659606c07 /loader/anim-traits.hpp
parent985ce7d9b033d16f49170af8505af46ddcf29081 (diff)
wip atlas
Diffstat (limited to 'loader/anim-traits.hpp')
-rw-r--r--loader/anim-traits.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/anim-traits.hpp b/loader/anim-traits.hpp
index 78bf6b45..517a3097 100644
--- a/loader/anim-traits.hpp
+++ b/loader/anim-traits.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "atlas-loader-fwd.hpp"
#include <memory>
+#include <cr/Optional.h>
namespace floormat { struct anim_cell; class anim_atlas; }
@@ -17,10 +18,9 @@ template<> struct atlas_loader_traits<anim_atlas>
static const std::shared_ptr<Atlas>& atlas_of(const Cell& x);
static std::shared_ptr<Atlas>& atlas_of(Cell& x);
static StringView name_of(const Cell& x);
- static StringView name_of(const Atlas& x);
static String& name_of(Cell& x);
static void atlas_list(Storage& st);
- static Pointer<Cell> make_invalid_atlas(Storage& st);
+ static Cell make_invalid_atlas(Storage& st);
static std::shared_ptr<Atlas> make_atlas(StringView name, const Cell& c);
static Optional<Cell> make_cell(StringView name);
};