Sdk/Entity: Fix movement

Fixes OnEntityDestruction not being moved
This commit is contained in:
Lynix
2018-04-22 12:46:41 +02:00
parent 8ab1462402
commit 97067cb566
3 changed files with 6 additions and 24 deletions

View File

@@ -9,6 +9,7 @@
#include <Nazara/Core/Bitset.hpp>
#include <Nazara/Core/HandledObject.hpp>
#include <Nazara/Core/MovablePtr.hpp>
#include <Nazara/Core/Signal.hpp>
#include <NDK/Algorithm.hpp>
#include <NDK/Prerequisites.hpp>
@@ -33,7 +34,7 @@ namespace Ndk
public:
Entity(const Entity&) = delete;
Entity(Entity&& entity);
Entity(Entity&& entity) noexcept;
~Entity();
BaseComponent& AddComponent(std::unique_ptr<BaseComponent>&& component);
@@ -96,8 +97,8 @@ namespace Ndk
Nz::Bitset<> m_componentBits;
Nz::Bitset<> m_removedComponentBits;
Nz::Bitset<> m_systemBits;
Nz::MovablePtr<World> m_world;
EntityId m_id;
World* m_world;
bool m_enabled;
bool m_valid;
};