more component stuff
This commit is contained in:
17
include/components/InputComponent.h
Normal file
17
include/components/InputComponent.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL_events.h>
|
||||
#include "GameState.h"
|
||||
|
||||
struct InputComponent {
|
||||
|
||||
public:
|
||||
virtual ~InputComponent() {};
|
||||
virtual GameState update(SDL_Event const* event) = 0;
|
||||
|
||||
bool moveUp;
|
||||
bool moveDown;
|
||||
bool moveLeft;
|
||||
bool moveRight;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user