summaryrefslogtreecommitdiff
path: root/src/d_loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/d_loop.h')
-rw-r--r--src/d_loop.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/d_loop.h b/src/d_loop.h
index 7eed035b..4e0d8625 100644
--- a/src/d_loop.h
+++ b/src/d_loop.h
@@ -29,6 +29,13 @@
#include "net_defs.h"
+// Callback function invoked while waiting for the netgame to start.
+// The callback is invoked when new players are ready. The callback
+// should return true, or return false to abort startup.
+
+typedef boolean (*netgame_startup_callback_t)(int ready_players,
+ int num_players);
+
typedef struct
{
// Read events from the event queue, and process them.
@@ -72,7 +79,8 @@ boolean D_InitNetGame(net_connect_data_t *connect_data);
// Start game with specified settings. The structure will be updated
// with the actual settings for the game.
-void D_StartNetGame(net_gamesettings_t *settings);
+void D_StartNetGame(net_gamesettings_t *settings,
+ netgame_startup_callback_t callback);
extern boolean singletics;
extern int gametic, ticdup;