How skypjack/entt works
EnTT is a header-only C++ library for game programming, centered on entity-component-system workflows and accompanied by independent runtime utilities. The documented user path is to create entities, attach components through a registry, then query them with a view while application code updates results. The README also identifies reflection, execution graphs, resource management, signals, polymorphism, containers, RTTI, and customizable STL support. Source excerpts are limited, so links between internal subsystems are omitted where call ownership is not shown.
Main entry points: registry.hpp Entity Registry · view.hpp Entity Views
Components 17
Entity Components
- Entity Registry
src/entt/entity/registry.hpp - Component Storage
src/entt/entity/storage.hpp - Sparse Sets
src/entt/entity/sparse_set.hpp - Entity Views
src/entt/entity/view.hpp
Core Foundations
- Type Traits
src/entt/core/type_traits.hpp - Compressed Pair
src/entt/core/compressed_pair.hpp - Iterator Utilities
src/entt/core/iterator.hpp - Dense Map
src/entt/container/dense_map.hpp - Dense Set
src/entt/container/dense_set.hpp
Runtime Utilities
- Runtime Reflection
src/entt/meta/meta.hpp - Execution Graph
src/entt/graph/flow.hpp - Resource Management
src/entt/resource/cache.hpp - Signals and Events
src/entt/signal/sigh.hpp - Static Polymorphism
src/entt/poly/poly.hpp - Runtime Type Info
src/entt/core/type_info.hpp
STL Compatibility
- STL Compatibility Layer
src/entt/stl/concepts.hpp
Other components
- C++ Application
Connections 3
- C++ Application → Entity Registry: creates entities
- C++ Application → Entity Registry: adds components
- C++ Application → Entity Views: queries components