equal
deleted
inserted
replaced
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 */ |