diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-16 12:26:01 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 23:23:11 +0100 |
| commit | 489db3043caa82942ef7dc5a6d4b1ee30fd56b9d (patch) | |
| tree | 4f5ba8567141bf4955c886d53ceab3907b9502f2 /src/scenery.cpp | |
| parent | d7ea52c8c86e607dc3e7557c96d07910d21be1f4 (diff) | |
a
Diffstat (limited to 'src/scenery.cpp')
| -rw-r--r-- | src/scenery.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp index a7c21ae2..5fe6d573 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -7,19 +7,22 @@ namespace floormat { -scenery_proto::scenery_proto() = default; +scenery_proto::scenery_proto() +{ + type = entity_type::scenery; +} scenery_proto& scenery_proto::operator=(const scenery_proto&) = default; scenery_proto::scenery_proto(const scenery_proto&) = default; scenery_proto::~scenery_proto() noexcept = default; scenery_proto::operator bool() const { return atlas != nullptr; } -bool scenery::can_activate(It) const +bool scenery::can_activate(std::size_t) const { return atlas && interactive; } -bool scenery::update(It, float dt) +bool scenery::update(std::size_t, float dt) { auto& s = *this; if (!s.active) @@ -60,7 +63,7 @@ bool scenery::update(It, float dt) } } -bool scenery::activate(It) +bool scenery::activate(std::size_t) { auto& s = *this; if (s.active) |
