R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
Registry.hpp File Reference

Registry for the ECS (Entity-Component System). More...

#include <any>
#include <bitset>
#include <mutex>
#include <queue>
#include <shared_mutex>
#include <unordered_map>
#include <vector>
#include "Components/IComponent.hpp"
#include "Registry.tpp"
Include dependency graph for Registry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ecs::Registry
 Manages entities, their signatures and component type registrations. More...
 

Namespaces

namespace  ecs
 Maximum number of distinct component types supported by the Registry.
 

Macros

#define N_MAX_COMPONENTS   64
 

Typedefs

typedef std::bitset< N_MAX_COMPONENTSecs::Signature
 Bitset representing the set of components attached to an entity.
 

Detailed Description

Registry for the ECS (Entity-Component System).

Provides facilities to create/destroy entities, assign components to entities via signatures (bitsets), and register component types.

Definition in file Registry.hpp.

Macro Definition Documentation

◆ N_MAX_COMPONENTS

#define N_MAX_COMPONENTS   64

Definition at line 28 of file Registry.hpp.