diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
commit | 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch) | |
tree | c0a5d21b8e19fbb60c286faec8e302e6f32b6679 /src/tile.hpp | |
parent | 32b8c22828315292857e2cd9909fba620f30ff70 (diff) |
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'src/tile.hpp')
-rw-r--r-- | src/tile.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tile.hpp b/src/tile.hpp index 5eed7633..f9d6adc8 100644 --- a/src/tile.hpp +++ b/src/tile.hpp @@ -20,7 +20,7 @@ struct tile_proto final struct tile_ref final { - tile_ref(struct chunk& c, std::uint8_t i) noexcept; + tile_ref(struct chunk& c, uint8_t i) noexcept; tile_image_ref ground() noexcept; tile_image_ref wall_north() noexcept; @@ -42,13 +42,13 @@ struct tile_ref final struct chunk& chunk() noexcept { return *_chunk; } const struct chunk& chunk() const noexcept { return *_chunk; } - std::size_t index() const noexcept { return i; } + size_t index() const noexcept { return i; } friend bool operator==(const tile_ref& a, const tile_ref& b) noexcept; private: struct chunk* _chunk; - std::uint8_t i; + uint8_t i; }; } //namespace floormat |