engine.h 467 B

123456789101112131415161718192021222324252627
  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. {
  10. #endif
  11. typedef struct
  12. {
  13. float target_fps;
  14. bool show_fps;
  15. bool always_backlight;
  16. void (*start)(GameManager *game_manager, void *context);
  17. void (*stop)(void *context);
  18. size_t context_size;
  19. } Game;
  20. extern const Game game;
  21. #ifdef __cplusplus
  22. }
  23. #endif