|
Engine²
Open-source game engine written in C++.
|
#include <ContactCallback.hpp>
Public Types | |
| using | CallbackFunc = std::function<void(Engine::Core &, Engine::Entity &, Engine::Entity &)> |
Public Member Functions | |
| ContactCallback (CallbackFunc cb) | |
| void | operator() (Engine::Core &core, Engine::Entity &a, Engine::Entity &b) const final |
| FunctionUtils::FunctionID | GetID () const final |
| Pure virtual function to get the unique ID of the function. | |
| Public Member Functions inherited from FunctionUtils::BaseFunction< void, Engine::Core &, Engine::Entity &, Engine::Entity & > | |
| virtual | ~BaseFunction ()=default |
| virtual void | operator() (TArgs... args) const=0 |
| Pure virtual function call operator to be implemented by derived functions. | |
| void | Call (TArgs... args) const |
| External Call function. | |
| virtual std::string | GetName () const=0 |
| Pure virtual function to get the name of the function. | |
Private Member Functions | |
| template<typename... Cs> | |
| bool | hasAllComponents (Engine::Core &core, const Engine::Entity &entity) const |
| template<typename C1, typename C2> | |
| void | callIfComponentMatch (Engine::Core &core, Engine::Entity &a, Engine::Entity &b) const |
Private Attributes | |
| CallbackFunc | _callback |
| The callback function to call. | |
| using Physics::Utils::ContactCallback< Components >::CallbackFunc = std::function<void(Engine::Core &, Engine::Entity &, Engine::Entity &)> |
|
inlineexplicit |
|
inlineprivate |
|
inlinefinalvirtual |
Pure virtual function to get the unique ID of the function.
Implements FunctionUtils::BaseFunction< void, Engine::Core &, Engine::Entity &, Engine::Entity & >.
|
inlineprivate |
|
inlinefinal |
|
private |
The callback function to call.