r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
ecs::Registry::EntityBuilder Class Reference

#include <Registry.hpp>

+ Collaboration diagram for ecs::Registry::EntityBuilder:

Public Member Functions

 EntityBuilder (Registry &reg, Entity e)
 
template<typename T , typename... Args>
EntityBuilderwith (Args &&...args)
 
Entity build () const
 

Private Attributes

Registrym_registry
 
Entity m_entity
 

Detailed Description

Definition at line 35 of file Registry.hpp.

Constructor & Destructor Documentation

◆ EntityBuilder()

ecs::Registry::EntityBuilder::EntityBuilder ( Registry & reg,
Entity e )
inline

Definition at line 38 of file Registry.hpp.

Member Function Documentation

◆ build()

Entity ecs::Registry::EntityBuilder::build ( ) const
inline

Definition at line 46 of file Registry.hpp.

References m_entity.

◆ with()

template<typename T , typename... Args>
EntityBuilder & ecs::Registry::EntityBuilder::with ( Args &&... args)
inline

Member Data Documentation

◆ m_entity

Entity ecs::Registry::EntityBuilder::m_entity
private

Definition at line 50 of file Registry.hpp.

Referenced by build(), and with().

◆ m_registry

Registry& ecs::Registry::EntityBuilder::m_registry
private

Definition at line 49 of file Registry.hpp.

Referenced by with().


The documentation for this class was generated from the following file: