SDEngine
Game Engine
Loading...
Searching...
No Matches
ComponentFactory.hpp File Reference
#include <functional>
#include <memory>
#include <vector>
#include "SD/core/types.hpp"
#include "SD/export.hpp"
#include "SparseEntitySet.hpp"
+ Include dependency graph for ComponentFactory.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sd::ComponentFactory
 

Namespaces

namespace  sd
 

Macros

#define REGISTER_SERIALIZABLE_COMPONENT(T)
 

Macro Definition Documentation

◆ REGISTER_SERIALIZABLE_COMPONENT

#define REGISTER_SERIALIZABLE_COMPONENT (   T)
Value:
namespace { \
struct T##PoolRegistrar { \
T##PoolRegistrar() { \
ComponentFactory::register_component(ComponentTraits<T>::id, \
[] { return std::make_unique<SparseEntitySet<T>>(); }); \
} \
}; \
}
constexpr T g_type_max
Definition types.hpp:21