diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-11 17:54:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-11 17:59:32 +0100 |
commit | 72735b0ba4fc4bcbc613afee5e438c2b20a54a51 (patch) | |
tree | 142f0a57486a8a6f1a1b35305de995c14c508273 /src | |
parent | 1c5be045bf12c04e1b7cbd96c4e7299a8e3c1ec7 (diff) |
src/scenery, draw/anim: add worldspace pixel offset for scenery
Diffstat (limited to 'src')
-rw-r--r-- | src/scenery.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp index 8c9035de..ca577bc6 100644 --- a/src/scenery.hpp +++ b/src/scenery.hpp @@ -3,6 +3,8 @@ #include <cstdint> #include <memory> #include <type_traits> +#include <Magnum/Math/Vector2.h> +#include <Magnum/Magnum.h> namespace floormat { @@ -34,6 +36,7 @@ struct scenery final std::uint16_t delta = 0; frame_t frame = 0; + Vector2b offset; rotation r : 3 = rotation::N; scenery_type type : 3 = scenery_type::none; pass_mode passability : 2 = pass_mode::shoot_through; |