0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 12:33:43 +00:00
SDL_Minigame/include/Component.h
Nimac0 fcf14b20c4 framework for randomly spawning items
not collectable yet, dont get destroyed either, WIP
2024-01-28 14:56:09 +01:00

26 lines
287 B
C++

#pragma once
class Entity;
enum class GroupLabel
{
MAP,
PLAYERS,
ENEMIES,
COLLIDERS,
PROJECTILE,
HEARTS,
POWERUPS
};
class Component
{
public:
Entity* entity;
virtual void init() {}
virtual void update() {}
virtual void draw() {}
virtual ~Component() = default;
};