#include "tile-image.hpp" namespace floormat { bool operator==(const tile_image_proto& a, const tile_image_proto& b) noexcept = default; tile_image_ref::tile_image_ref(std::shared_ptr& atlas, std::uint16_t& variant) noexcept : atlas{atlas}, variant{variant} { } tile_image_ref& tile_image_ref::operator=(tile_image_ref&& ref) noexcept { atlas = ref.atlas; variant = ref.variant; return *this; } tile_image_ref& tile_image_ref::operator=(const tile_image_proto& proto) noexcept { atlas = proto.atlas; variant = proto.variant; return *this; } tile_image_ref::tile_image_ref(const tile_image_ref&) noexcept = default; tile_image_ref::tile_image_ref(tile_image_ref&&) noexcept = default; tile_image_ref::operator tile_image_proto() const noexcept { return { atlas, variant }; } } // namespace floormat