Antkeeper
0.0.1
|
Entity type template. More...
#include <archetype.hpp>
Public Member Functions | |
entity::id | create (entity::registry ®istry) const |
Creates an instance of this archetype. More... | |
void | stamp (entt::handle &handle) const |
Public Attributes | |
std::list< std::function< void(entt::handle &)> > | stamps |
List of stamp functions which construct instances of the archetype's components. More... | |
Entity type template.
Definition at line 33 of file archetype.hpp.
entity::id entity::archetype::create | ( | entity::registry & | registry | ) | const |
Creates an instance of this archetype.
registry | Registry in which to create an entity. |
Definition at line 25 of file archetype.cpp.
void entity::archetype::stamp | ( | entt::handle & | handle | ) | const |
Definition at line 35 of file archetype.cpp.
std::list<std::function<void(entt::handle&)> > entity::archetype::stamps |
List of stamp functions which construct instances of the archetype's components.
Definition at line 36 of file archetype.hpp.