SDK/Entity: Add entity cloning
Former-commit-id: 6ba33c15d30cb9e385eaa2dd115e680962aad364 [formerly e5bf85dfef3def45ea47b9a8e46f2b5c61a6ca4f] [formerly aa4cd7ce6637f9559ede8530119d2d96b30a4b47 [formerly aa7c268cc1ed04a8e484b5a6317d967121939067]] Former-commit-id: 24cf44420c029ec2ccc02f8b88873555af0aa88f [formerly efb642be02646b410003e5972c8494af773ef097] Former-commit-id: 4d30a3ad59e3a30b0ff48eb984c20e3c098fbee1
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