]> git.lizzy.rs Git - nothing.git/blobdiff - src/game.h
(#828) Update back platforms on tab out from Level Editor
[nothing.git] / src / game.h
index 8389004bc12648533034c6008b7b5c6ed4e601d5..5ae68ad833c727e218500ab511a1892894a4f97f 100644 (file)
@@ -3,24 +3,29 @@
 
 #include <SDL2/SDL.h>
 
-#include "game/sound_medium.h"
+#include "game/sound_samples.h"
+#include "ebisp/expr.h"
 
-typedef struct game_t game_t;
+typedef struct Game Game;
 
-game_t *create_game(const char *platforms_file_path,
-                    sound_medium_t *sound_medium,
+Game *create_game(const char *platforms_file_path,
+                    const char *sound_sample_files[],
+                    size_t sound_sample_files_count,
                     SDL_Renderer *renderer);
-void destroy_game(game_t *game);
+void destroy_game(Game *game);
 
-int game_render(const game_t *game);
-int game_sound(game_t *game);
-int game_update(game_t *game, float delta_time);
+int game_render(const Game *game);
+int game_sound(Game *game);
+int game_update(Game *game, float delta_time);
 
-int game_event(game_t *game, const SDL_Event *event);
-int game_input(game_t *game,
+int game_event(Game *game, const SDL_Event *event);
+int game_input(Game *game,
                const Uint8 *const keyboard_state,
                SDL_Joystick *the_stick_of_joy);
 
-int game_over_check(const game_t *game);
+int game_over_check(const Game *game);
+
+struct EvalResult
+game_send(Game *game, Gc *gc, struct Scope *scope, struct Expr path);
 
 #endif  // GAME_H_