diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-13 17:43:04 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-13 17:43:04 +0200 |
commit | ba67cba2f69470bf589897f0bddc3125a4664b7a (patch) | |
tree | a74fea0c222998eb6007cdfd4ea12ece24757b3f /src/scenery.cpp | |
parent | 2260ab972100f1d6679690b730b6f0aa7409b014 (diff) |
add move assignment operator and ctor to scenery_proto
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r-- | src/scenery.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp index 26213757..e0b62211 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -25,11 +25,13 @@ enum scenery_type door_scenery_proto::scenery_type() { return scenery_type::door // --- scenery_proto --- scenery_proto::scenery_proto() noexcept { type = object_type::scenery; } +scenery_proto::~scenery_proto() noexcept = default; +scenery_proto::operator bool() const { return atlas != nullptr; } scenery_proto& scenery_proto::operator=(const scenery_proto&) noexcept = default; scenery_proto::scenery_proto(const scenery_proto&) noexcept = default; -scenery_proto::~scenery_proto() noexcept = default; -scenery_proto::operator bool() const { return atlas != nullptr; } +scenery_proto& scenery_proto::operator=(scenery_proto&&) noexcept = default; +scenery_proto::scenery_proto(scenery_proto&&) noexcept = default; enum scenery_type scenery_proto::scenery_type() const { |