project_files/frontlib/ipc/gameconn.h
changeset 7576 65d29988fd3d
parent 7482 d70a5b0d1190
child 10017 de822cd3df3a
--- a/project_files/frontlib/ipc/gameconn.h	Sat Aug 18 21:05:30 2012 +0200
+++ b/project_files/frontlib/ipc/gameconn.h	Sun Aug 19 15:05:23 2012 +0200
@@ -123,12 +123,19 @@
 int flib_gameconn_send_chatmsg(flib_gameconn *conn, const char *playername, const char *msg);
 
 /**
- * Request the engine to stop the game.
+ * Request the engine to stop the game (efinish).
  * You can use this to shut down a game early without directly killing the engine process.
  */
 int flib_gameconn_send_quit(flib_gameconn *conn);
 
 /**
+ * Send an arbitrary command to the engine, e.g. "eforcequit" to shut down the engine
+ * quickly. Commands prefixed with "e" will be processed by the engine's ProcessCommand
+ * method (with the e removed, so e.g. efinish will be parsed as finish).
+ */
+int flib_gameconn_send_cmd(flib_gameconn *conn, const char *cmdString);
+
+/**
  * Expected callback signature: void handleConnect(void *context)
  * The engine has successfully connected. You don't have to react to this in any way.
  */