diff src/game.h @ 45:e10fd1b6323f

core: implement splashscreen, closes #2458 @1h
author David Demelier <markand@malikania.fr>
date Wed, 15 Jan 2020 22:31:17 +0100
parents c97fe725fdeb
children 9f6267843815
line wrap: on
line diff
--- a/src/game.h	Wed Jan 15 21:31:17 2020 +0100
+++ b/src/game.h	Wed Jan 15 22:31:17 2020 +0100
@@ -43,6 +43,17 @@
 extern struct game game;
 
 /**
+ * Request to change state.
+ *
+ * This function will only update state after the next \a game_update call.
+ *
+ * \pre state != NULL
+ * \param state the new state
+ */
+void
+game_switch(struct state *state);
+
+/**
  * Handle input event.
  *
  * \param event the event