VEGO-Engine  0.1
Loading...
Searching...
No Matches
PickupComponent Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PickupComponent()

PickupComponent::PickupComponent ( std::function< void(Entity *)> func)

Construct a new Powerup Component object.

Parameters
funcThe function to be called when the powerup is picked up

The documentation for this class was generated from the following files: