#pragma once #include "compat/assert.hpp" #include #include #include #include namespace floormat::Serialize { [[noreturn]] void throw_failed_to_parse_vector2(const std::string& str); [[noreturn]] void throw_vector2_overflow(const std::string& str); } namespace nlohmann { template requires std::is_integral_v struct adl_serializer> final { static void to_json(json& j, const Magnum::Math::Vector2& val); static void from_json(const json& j, Magnum::Math::Vector2& val); }; } // namespace nlohmann