mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 13:43:41 +00:00
16 lines
273 B
C++
16 lines
273 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include "Component.h"
|
|
|
|
class PowerupComponent : public Component
|
|
{
|
|
public:
|
|
PowerupComponent(std::function<void (Entity*)> func);
|
|
~PowerupComponent() {};
|
|
|
|
void update() override;
|
|
|
|
private:
|
|
std::function<void (Entity*)> pickupFunc;
|
|
}; |