Antkeeper  0.0.1
Public Member Functions | Public Attributes | List of all members
entity::archetype Struct Reference

Entity type template. More...

#include <archetype.hpp>

Public Member Functions

entity::id create (entity::registry &registry) 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...
 

Detailed Description

Entity type template.

Definition at line 33 of file archetype.hpp.

Member Function Documentation

◆ create()

entity::id entity::archetype::create ( entity::registry registry) const

Creates an instance of this archetype.

Parameters
registryRegistry in which to create an entity.
Returns
Entity ID of the created instance.

Definition at line 25 of file archetype.cpp.

◆ stamp()

void entity::archetype::stamp ( entt::handle &  handle) const

Definition at line 35 of file archetype.cpp.

Member Data Documentation

◆ stamps

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.


The documentation for this struct was generated from the following files: