Antkeeper  0.0.1
Classes | Typedefs | Functions
entity Namespace Reference

Classes

struct  archetype
 Entity type template. More...
 

Typedefs

typedef entt::entity id
 Entity ID type. More...
 
typedef entt::registry registry
 Component registry type. More...
 

Functions

void clone (entity::registry &registry, entity::id source, entity::id destination)
 Clones all the components of an entity. More...
 

Typedef Documentation

◆ id

typedef entt::entity entity::id

Entity ID type.

Definition at line 28 of file id.hpp.

◆ registry

typedef entt::registry entity::registry

Component registry type.

Definition at line 28 of file registry.hpp.

Function Documentation

◆ clone()

void entity::clone ( entity::registry registry,
entity::id  source,
entity::id  destination 
)

Clones all the components of an entity.

Parameters
registryEntity registry.
sourceSource entity ID.
destinationDestination entity ID.

Definition at line 24 of file clone.cpp.