diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 18:31:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 18:31:18 +0200 |
commit | 1b84fc144f77c4ebef6fdc0a476410420e0a95b3 (patch) | |
tree | 62d019065f4e704ca33b8808e6d76b2fec640da1 /src/tile.hpp | |
parent | 7c02d3b8f1e6ec4ee82bdf1220da431b1cd1231e (diff) |
refactoring work
Diffstat (limited to 'src/tile.hpp')
-rw-r--r-- | src/tile.hpp | 20 |
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, }; |