diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-01 20:04:07 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-01 20:04:07 +0200 |
| commit | 3dc6362599e85c9978ec4e9676ebcda3ab52beaf (patch) | |
| tree | acac74986000b7a0a0c75d412fa850923abb7e87 /tile.hpp | |
| parent | 9436414c5002e86e64f90be3f10933fdba63943e (diff) | |
a
Diffstat (limited to 'tile.hpp')
| -rw-r--r-- | tile.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -13,7 +13,7 @@ namespace Magnum::Examples { -static constexpr Vector3 TILE_SIZE = { 50, 50, 50 }; +constexpr inline Vector3 TILE_SIZE = { 50, 50, 50 }; struct tile_image final { @@ -25,14 +25,11 @@ struct tile_image final struct tile final { - enum class pass_mode : std::uint8_t { pass_blocked, pass_yes, pass_shoot_through, pass_obscured }; + enum class pass_mode : std::uint8_t { pass_blocked, pass_ok, pass_shoot_through, }; using enum pass_mode; - tile_image ground_image_, wall_west_, wall_north_; - pass_mode passability_ = pass_shoot_through; - - //explicit operator bool() const noexcept { return !!ground_image_.atlas; } + tile_image ground_image, wall_west, wall_north; + pass_mode passability = pass_shoot_through; }; - } //namespace Magnum::Examples |
