mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 03:03:10 +00:00
12 lines
318 B
C
12 lines
318 B
C
|
#pragma once
|
||
|
|
||
|
// template for modes
|
||
|
template <class TState, class TEvents> class AppTemplateMode {
|
||
|
public:
|
||
|
const char* name;
|
||
|
virtual void event(TEvents* event, TState* state) = 0;
|
||
|
virtual void render(CanvasApi* canvas, TState* state) = 0;
|
||
|
virtual void acquire() = 0;
|
||
|
virtual void release() = 0;
|
||
|
};
|