A class that defines behavior and attributes for a GameObject.
More...
#include <Component.hpp>
|
using | method) = void(Component::*)( |
|
A class that defines behavior and attributes for a GameObject.
using lm::Component::method = void (Component::*)( |
lm::Component::Component |
( |
| ) |
|
virtual lm::Component::~Component |
( |
| ) |
|
|
pure virtual |
template<typename T >
void lm::Component::bind |
( |
int |
slot, |
|
|
T |
function |
|
) |
| const |
|
inline |
Bind a method to a slot
- Template Parameters
-
- Parameters
-
slot | The destination slot |
function | The method to bind |
template<typename T >
void lm::Component::bind |
( |
const char * |
slot, |
|
|
T |
function |
|
) |
| const |
|
inline |
Bind a method to a slot
- Template Parameters
-
- Parameters
-
slot | A string representing a slot - it will be hashed (at compile time if possible) |
function | The method to bind |
Bind a method to a slot
- Parameters
-
slot | The destination slot |
function | The method to bind |
Get an untyped handle to a slot
- Parameters
-
- Returns
- An untyped handle to the slot
template<typename... Ts>
void lm::Component::handleEvent |
( |
Ts... |
params | ) |
|
|
inline |
A no-op, catch-all implementation of handleEvent
- Template Parameters
-
- Parameters
-
template<typename... Ts>
void lm::Component::render |
( |
Ts... |
params | ) |
|
|
inline |
A no-op, catch-all implementation of render
- Template Parameters
-
- Parameters
-
bool lm::Component::respondTo |
( |
int |
slot | ) |
const |
Check if the component react to a slot
- Parameters
-
- Returns
- True if the component react, false otherwise
template<typename... Ts>
void lm::Component::update |
( |
Ts... |
params | ) |
|
|
inline |
A no-op, catch-all implementation of update
- Template Parameters
-
- Parameters
-
The documentation for this class was generated from the following file: