From 05c67aac26d6042454e5d0503acdb11b2c667176 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Feb 2024 12:04:50 +0100 Subject: use enum loader_policy (lessen logspam) --- src/world.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 #include #include @@ -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 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 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++; } -- cgit v1.2.3