Entity Component System Manager classes. More...
#include "singleton.hpp"
#include "linear-pool.hpp"
#include "tsl/robin_map.h"
#include <cassert>
#include <cstdint>
#include <set>
#include <mutex>
#include <functional>
#include <string_view>
#include <type_traits>
Classes | |
struct | SvHash |
String view heterogeneous hash functions. More... | |
struct | SvEqual |
String view heterogeneous equal functions. More... | |
struct | Component |
Base component structure. More... | |
class | System |
Base system class. More... | |
class | Entity |
An object containing components. More... | |
struct | Entity::ComponentData |
Entity component data container. More... | |
class | Manager |
Systems and entities coordinator. More... | |
struct | Manager::Event |
Event data container. More... | |
class | ComponentSystem< T, DestroyComponents > |
Base system class with components. More... | |
struct | DoNotDestroyComponent |
Component indicating that this entity should not be destroyed. More... | |
class | DoNotDestroySystem |
Handles entities that should not be destroyed. More... | |
struct | DoNotDuplicateComponent |
Component indicating that this entity should not be duplicated. More... | |
class | DoNotDuplicateSystem |
Handles entities that should not be duplicated. More... | |
Macros | |
#define | ECSM_SUBSCRIBE_TO_EVENT(name, func) |
Subscribes System function to the event. | |
#define | ECSM_UNSUBSCRIBE_FROM_EVENT(name, func) |
Unsubscribes System function from the event. | |
#define | ECSM_TRY_SUBSCRIBE_TO_EVENT(name, func) |
Subscribes System function to the event if exist. | |
#define | ECSM_TRY_UNSUBSCRIBE_FROM_EVENT(name, func) |
Unsubscribes System function from the event if exist. | |
Entity Component System Manager classes.
struct ecsm::Entity::ComponentData |
#define ECSM_SUBSCRIBE_TO_EVENT | ( | name, | |
func ) |
Subscribes System function to the event.
#define ECSM_UNSUBSCRIBE_FROM_EVENT | ( | name, | |
func ) |
Unsubscribes System function from the event.
#define ECSM_TRY_SUBSCRIBE_TO_EVENT | ( | name, | |
func ) |
Subscribes System function to the event if exist.
#define ECSM_TRY_UNSUBSCRIBE_FROM_EVENT | ( | name, | |
func ) |
Unsubscribes System function from the event if exist.