File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 3
3
#include < entt/entity/entity.hpp>
4
4
#include < entt/entity/registry.hpp>
5
5
6
- struct entity_id {
6
+ struct entity_id final {
7
7
using entity_type = std::uint32_t ;
8
8
static constexpr auto null = entt::null;
9
9
10
10
constexpr entity_id (entity_type value = null) noexcept
11
11
: entt{value} {}
12
12
13
- constexpr entity_id (const entity_id &other) noexcept = default;
14
- constexpr entity_id &operator =(const entity_id &other) noexcept = default ;
13
+ ~entity_id () noexcept = default ;
14
+
15
+ constexpr entity_id (const entity_id &other) = default;
16
+ constexpr entity_id (entity_id &&other) noexcept = default;
17
+
18
+ constexpr entity_id &operator =(const entity_id &other) = default ;
19
+ constexpr entity_id &operator =(entity_id &&other) noexcept = default ;
15
20
16
21
constexpr operator entity_type () const noexcept {
17
22
return entt;
You can’t perform that action at this time.
0 commit comments