VEGO-Engine
0.1
Loading...
Searching...
No Matches
PowerupComponent.h
1
#pragma once
2
3
#include <functional>
4
#include "Component.h"
5
6
class
PowerupComponent
:
public
Component
7
{
8
public
:
9
PowerupComponent
(std::function<
void
(
Entity
*)> func);
10
~PowerupComponent
() {};
11
12
void
update()
override
;
13
14
private
:
15
std::function<void (
Entity
*)> pickupFunc;
16
};
Component
Definition
Component.h:6
Entity
Main class for any object in game, stores associations, labeling and components.
Definition
Entity.h:35
PowerupComponent
Definition
PowerupComponent.h:7
include
PowerupComponent.h
Generated by
1.12.0