summaryrefslogtreecommitdiffhomepage
path: root/src/tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile.hpp')
-rw-r--r--src/tile.hpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/tile.hpp b/src/tile.hpp
index e8bac834..5103479d 100644
--- a/src/tile.hpp
+++ b/src/tile.hpp
@@ -1,27 +1,9 @@
#pragma once
#include "compat/defs.hpp"
-#include "compat/integer-types.hpp"
-#include "tile-defs.hpp"
-#include <memory>
+#include "tile-image.hpp"
namespace floormat {
-struct tile_atlas;
-
-struct tile_image final
-{
- std::shared_ptr<tile_atlas> atlas;
- std::size_t variant = (std::size_t)-1;
-
- explicit operator bool() const noexcept { return !!atlas; }
-
- std::strong_ordering operator<=>(const tile_image& o) const noexcept
- {
- const auto ret = atlas.get() <=> o.atlas.get();
- return ret != std::strong_ordering::equal ? ret : variant <=> o.variant;
- }
-};
-
struct tile final
{
enum pass_mode : std::uint8_t { pass_blocked, pass_ok, pass_shoot_through, };