diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-06 12:04:50 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-06 21:40:39 +0100 |
commit | 05c67aac26d6042454e5d0503acdb11b2c667176 (patch) | |
tree | 30735548917a1b534b538157224d2f20f1e4158c /src | |
parent | 5fa81c74d62fcbfd46d992c38426e952e9eeda4e (diff) |
use enum loader_policy (lessen logspam)
Diffstat (limited to 'src')
-rw-r--r-- | src/world.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/world.hpp b/src/world.hpp index 99ce131f..8e6b9815 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -3,6 +3,7 @@ #include "chunk.hpp" #include "global-coords.hpp" #include "object-type.hpp" +#include "loader/policy.hpp" #include <memory> #include <unordered_map> #include <Corrade/Utility/Move.h> @@ -65,8 +66,8 @@ public: const auto& chunks() const noexcept { return _chunks; } void serialize(StringView filename); - static class world deserialize(StringView filename) noexcept(false); - static void deserialize_old(class world& w, ArrayView<const char> buf, uint16_t proto) noexcept(false); + static class world deserialize(StringView filename, loader_policy asset_policy) noexcept(false); + static void deserialize_old(class world& w, ArrayView<const char> buf, uint16_t proto, enum loader_policy asset_policy) noexcept(false); auto frame_no() const { return _current_frame; } auto increment_frame_no() { return _current_frame++; } |