32 static_assert(
sizeof...(Components) <= 2,
"ContactCallback can only have up to 2 components.");
34 if constexpr (
sizeof...(Components) == 0)
38 else if constexpr (
sizeof...(Components) == 1)
45 else if constexpr (
sizeof...(Components) == 2)
59 template <
typename C1,
typename C2>
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
Wrapper class providing a convenient interface for entity manipulation with the Core....
Definition Entity.hpp:20
bool HasComponents() const
Check if entity have one or multiple component's type.
Definition Entity.hpp:109
Base class for all functions contained in a FunctionContainer.
Definition BaseFunction.hpp:10
std::size_t FunctionID
FunctionID class to represent a unique identifier for functions.
Definition FunctionID.hpp:9
FunctionUtils::BaseFunction< void, Engine::Core &, Engine::Entity &, Engine::Entity & > BaseCallback
A utility class for handling contact callbacks in a physics engine.
Definition ContactCallback.hpp:23