0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 13:43:41 +00:00
SDL_Minigame/include/PowerupComponent.h

16 lines
295 B
C++

#pragma once
#include <functional>
#include "Component.h"
class PowerupComponent : public Component
{
public:
PowerupComponent(std::function<void (Entity*)> func);
~PowerupComponent() {};
void update(uint_fast16_t diffTime) override;
private:
std::function<void (Entity*)> pickupFunc;
};