SDK/Entity: Add entity cloning
Former-commit-id: 3cc9457d125991c6ac98a6e2559aab220446f9cf [formerly 721b19c23c3431e002604e4b201a63a74ddc8404] [formerly b8026d485a23968df3a768ae31afe09e80e31d69 [formerly 892cbc899b0ce57a905b807d5f9cb0747336fe0c]] Former-commit-id: 3bfafaf90dd5db34f1fce455c67ba51f5be3174d [formerly 6f2ab5632b943089fc3e6ad1f06266054740f1e8] Former-commit-id: e2694c2f25769068f64dc437d06e4c53525c0c6c
This commit is contained in:
@@ -34,6 +34,8 @@ namespace Ndk
|
||||
BaseComponent& AddComponent(std::unique_ptr<BaseComponent>&& component);
|
||||
template<typename ComponentType, typename... Args> ComponentType& AddComponent(Args&&... args);
|
||||
|
||||
const EntityHandle& Clone() const;
|
||||
|
||||
inline void Enable(bool enable);
|
||||
|
||||
inline BaseComponent& GetComponent(ComponentIndex index);
|
||||
|
||||
@@ -44,6 +44,8 @@ namespace Ndk
|
||||
|
||||
void Clear() noexcept;
|
||||
|
||||
const EntityHandle& CloneEntity(EntityId id);
|
||||
|
||||
const EntityHandle& GetEntity(EntityId id);
|
||||
inline const EntityList& GetEntities();
|
||||
inline BaseSystem& GetSystem(SystemIndex index);
|
||||
|
||||
Reference in New Issue
Block a user