X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Fserver%2Frun.h;h=7436cb7429982054d42f60ba9dcbe2dd907f8df7;hb=28b8b4234e395c3fdc4800e5cfb3dcd70a15cadf;hp=400f0799b38379af51d63b31e26edd1618a3debf;hpb=891ba8fbca53d920f6b3704827fa6b8aee737de4;p=plomrogue
diff --git a/src/server/run.h b/src/server/run.h
index 400f079..7436cb7 100644
--- a/src/server/run.h
+++ b/src/server/run.h
@@ -1,4 +1,8 @@
/* src/server/run.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Process commands and act on them. Stuff that furthers the state of the game.
*/
@@ -10,9 +14,16 @@
-/* Try parsing "msg" into a command to apply, and apply it. Record commands to
- * the file at world.path_record if "do_record" is set, and output them to
- * stdout if "do_verbose" and world.is_verbose are set.
+/* Record save and record file data. Both are only written if "force" is set, or
+ * on the first run with unset "force", or if 15 seconds have passed since the
+ * last file writing. "msg" is appended to the record file if it is set.
+ */
+extern void record(char * msg, uint8_t force);
+
+/* Try parsing "msg" into a command to apply, and apply it. Output commands to
+ * stdout if "do_verbose" and world.is_verbose are set. If "do_record" is set,
+ * record commands to record file, and run save_world() if the last call to it
+ * via this function has not happened yet or is at least one minute in the past.
*/
extern void obey_msg(char * msg, uint8_t do_record, uint8_t do_verbose);