|
VEGO-Engine
0.1
|
PickupComponent class to handle pickup events. More...
#include <PickupComponent.h>
Public Member Functions | |
| PickupComponent (std::function< void(Entity *)> func) | |
| Construct a new Powerup Component object. | |
PickupComponent class to handle pickup events.
This class manages pickup events, allowing for the registration of a callback function to be called when an entity with this component collides with another entity that has the "players" group label.
| PickupComponent::PickupComponent | ( | std::function< void(Entity *)> | func | ) |
Construct a new Powerup Component object.
| func | The function to be called when the powerup is picked up |