NasNas
An intuitive and beginner friendly 2D game framework for C++
Public Member Functions | List of all members
ns::ecs::detail::Registry< TEntity > Class Template Reference

Public Member Functions

TEntity create ()
 
void destroy (TEntity ent)
 
template<typename TComp , typename ... Targs>
auto attach (TEntity ent, Targs &&...args) -> TComp &
 
template<typename TComp >
void detach (TEntity ent)
 
template<typename TComp >
auto all () -> std::vector< TComp > &
 
template<typename TComp >
auto has (TEntity ent) -> bool
 
template<typename TComp >
auto get (TEntity ent) -> TComp &
 
auto count () const -> std::size_t
 
template<typename... TComps>
auto view () const -> components_view< TEntity, TComps... >
 
template<typename... TComps, typename Func >
auto run (Func fn)
 
template<typename... TComps>
auto run (System< TComps... > &system)
 

Detailed Description

template<typename TEntity = Entity>
class ns::ecs::detail::Registry< TEntity >

Definition at line 16 of file Registry.hpp.


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