home · contact · privacy
Unify Map struct common to server and client in src/common/map.h.
[plomrogue] / src / server / init.h
index 12d0c0876ed80d4020ea4a6800622d560880ef1c..f99126c88aaadc5c06f73673dd568d1a5f0ea852 100644 (file)
 /* Parses command line arguments -v and -s into server configuration. */
 extern void obey_argv(int argc, char * argv[]);
 
+/* Start server in file and out file, latter with server process test string. */
+extern void setup_server_io();
+
 /* Dissolves old game world if it exists, and generates a new one from "seed".
- * Unlinks any pre-existing file at world.path_record to re-start record.
+ * Unlinks a pre-existing file at world.path_record if called on a world.turn>0,
+ * i.e. if called after iterating through an already established game world.
  *
  * Map object (action) definitions read in from server config directory are not
- * affected. world.last_update_turn is set to 0 and world.turn to 1, so that
- * io_round()'s criteria for updating the output file are triggered even when
- * this function is called during a round 1. How many map objects of what type
- * id are generated on the map is currently hard-coded.
+ * affected. The map is populated accordingly. world.last_update_turn is set to
+ * 0 and world.turn to 1, so that io_round()'s criteria for updating the output
+ * file are triggered even when this function is called during a round 1.
  */
 extern void remake_world(uint32_t seed);