engine.h 428 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <furi.h>
  3. #include "game_engine.h"
  4. #include "level.h"
  5. #include "entity.h"
  6. #include "game_manager.h"
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef struct {
  11. float target_fps;
  12. bool show_fps;
  13. bool always_backlight;
  14. void (*start)(GameManager* game_manager, void* context);
  15. void (*stop)(void* context);
  16. size_t context_size;
  17. } Game;
  18. extern const Game game;
  19. #ifdef __cplusplus
  20. }
  21. #endif