0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 07:53:43 +00:00
SDL_Minigame/include/PowerupComponent.h
2024-10-12 20:23:18 +02:00

18 lines
343 B
C++

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