project_files/frontlib/ipc/gameconn.h
changeset 7576 65d29988fd3d
parent 7482 d70a5b0d1190
child 10017 de822cd3df3a
equal deleted inserted replaced
7574:b9ec869e624a 7576:65d29988fd3d
   121  * Generally only needed in net games.
   121  * Generally only needed in net games.
   122  */
   122  */
   123 int flib_gameconn_send_chatmsg(flib_gameconn *conn, const char *playername, const char *msg);
   123 int flib_gameconn_send_chatmsg(flib_gameconn *conn, const char *playername, const char *msg);
   124 
   124 
   125 /**
   125 /**
   126  * Request the engine to stop the game.
   126  * Request the engine to stop the game (efinish).
   127  * You can use this to shut down a game early without directly killing the engine process.
   127  * You can use this to shut down a game early without directly killing the engine process.
   128  */
   128  */
   129 int flib_gameconn_send_quit(flib_gameconn *conn);
   129 int flib_gameconn_send_quit(flib_gameconn *conn);
       
   130 
       
   131 /**
       
   132  * Send an arbitrary command to the engine, e.g. "eforcequit" to shut down the engine
       
   133  * quickly. Commands prefixed with "e" will be processed by the engine's ProcessCommand
       
   134  * method (with the e removed, so e.g. efinish will be parsed as finish).
       
   135  */
       
   136 int flib_gameconn_send_cmd(flib_gameconn *conn, const char *cmdString);
   130 
   137 
   131 /**
   138 /**
   132  * Expected callback signature: void handleConnect(void *context)
   139  * Expected callback signature: void handleConnect(void *context)
   133  * The engine has successfully connected. You don't have to react to this in any way.
   140  * The engine has successfully connected. You don't have to react to this in any way.
   134  */
   141  */