testbed: a bunch of components to start with

This commit is contained in:
skypjack
2025-04-30 16:06:17 +02:00
parent 1796b18284
commit cb10854bc8
3 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#pragma once
namespace testbed {
struct input_listener_component {
enum class type {
UP,
DOWN,
LEFT,
RIGHT
};
type command;
};
} // namespace testbed

View File

@@ -0,0 +1,11 @@
#pragma once
#include <SDL_rect.h>
namespace testbed {
struct rect_component {
SDL_Rect area;
};
} // namespace testbed

View File

@@ -0,0 +1,7 @@
#pragma once
namespace testbed {
struct renderable_component {};
} // namespace testbed