Sdk/EntityOwner: Prevent copy (Copying an EntityOwner has no use)

Former-commit-id: 628eb865509a84de19bf97bf8253960d6bfb0005
This commit is contained in:
Lynix
2016-01-19 12:20:38 +01:00
parent e907db7de1
commit 2b85c93433
2 changed files with 3 additions and 20 deletions

View File

@@ -16,16 +16,15 @@ namespace Ndk
public:
EntityOwner() = default;
explicit EntityOwner(Entity* entity);
EntityOwner(const EntityOwner& handle);
EntityOwner(const EntityOwner& handle) = delete;
EntityOwner(EntityOwner&& handle);
~EntityOwner();
void Reset(Entity* entity = nullptr);
void Reset(const EntityOwner& handle);
void Reset(EntityOwner&& handle);
EntityOwner& operator=(Entity* entity);
EntityOwner& operator=(const EntityOwner& handle);
EntityOwner& operator=(const EntityOwner& handle) = delete;
EntityOwner& operator=(EntityOwner&& handle);
};
}