summaryrefslogtreecommitdiffhomepage
path: root/src/scenery-proto.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-14 08:53:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-14 09:22:54 +0200
commit9d35200ea54a0729d489dc2c76823a2a13cdcac4 (patch)
treeafe10e017dcc226750c0023d0787df912927e6cd /src/scenery-proto.hpp
parentc8ae1f808a16d664ec229ca3a2237ac39bf1164d (diff)
add find_object specialization for scenery subtypes
Diffstat (limited to 'src/scenery-proto.hpp')
-rw-r--r--src/scenery-proto.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scenery-proto.hpp b/src/scenery-proto.hpp
index c5889b04..44c8fe6f 100644
--- a/src/scenery-proto.hpp
+++ b/src/scenery-proto.hpp
@@ -41,4 +41,7 @@ struct scenery_proto : object_proto
scenery_proto& operator=(scenery_proto&&) noexcept;
};
+template<> struct scenery_type_<generic_scenery_proto> : std::integral_constant<scenery_type, scenery_type::generic> {};
+template<> struct scenery_type_<door_scenery_proto> : std::integral_constant<scenery_type, scenery_type::door> {};
+
} // namespace floormat