summaryrefslogtreecommitdiffhomepage
path: root/src/tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile.hpp')
-rw-r--r--src/tile.hpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/tile.hpp b/src/tile.hpp
index 543b70b6..7a6604dd 100644
--- a/src/tile.hpp
+++ b/src/tile.hpp
@@ -1,32 +1,18 @@
#pragma once
#include "tile-image.hpp"
#include "scenery.hpp"
-#include "pass-mode.hpp"
namespace floormat {
struct chunk;
struct anim_atlas;
-struct pass_mode_ref final
-{
- pass_mode_ref(chunk& c, std::uint8_t i) noexcept;
- pass_mode_ref& operator=(pass_mode x) noexcept;
- pass_mode_ref& operator=(const pass_mode_ref& x) noexcept;
- operator pass_mode() const noexcept;
-
-private:
- chunk* _chunk;
- std::uint8_t i;
-};
-
struct tile_proto final
{
std::shared_ptr<tile_atlas> ground_atlas, wall_north_atlas, wall_west_atlas;
std::shared_ptr<anim_atlas> scenery_atlas;
variant_t ground_variant = 0, wall_north_variant = 0, wall_west_variant = 0;
struct scenery scenery_frame;
- pass_mode passability = pass_mode{0};
tile_image_proto ground() const noexcept;
tile_image_proto wall_north() const noexcept;
@@ -60,9 +46,6 @@ struct tile_ref final
std::shared_ptr<const tile_atlas> wall_west_atlas() const noexcept;
std::shared_ptr<const anim_atlas> scenery_atlas() const noexcept;
- pass_mode_ref passability() noexcept;
- pass_mode passability() const noexcept;
-
explicit operator tile_proto() const noexcept;
struct chunk& chunk() noexcept { return *_chunk; }