summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenery.hpp')
-rw-r--r--src/scenery.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp
index 7468cec2..4e362070 100644
--- a/src/scenery.hpp
+++ b/src/scenery.hpp
@@ -1,13 +1,19 @@
#pragma once
#include "compat/integer-types.hpp"
+#include <memory>
namespace floormat {
-using scenery_t = std::uint16_t;
-using scenery_frame_t = std::uint8_t;
+struct anim_atlas;
-enum class scenery : scenery_t {
- none, door_closed, door_empty,
+struct scenery final
+{
+ enum class rotation : std::uint16_t {
+ N, NE, E, SE, S, SW, W, NW,
+ };
+
+ rotation r : 3 = rotation::N;
+ std::uint16_t frame : 13 = 0;
};
} // namespace floormat