X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fconfig%2Fio.py;h=463163843aeb2bdfc76c8866371e259d24813e29;hb=9daa8b8d01b9b2f9295dc51e94ceb524c278fe68;hp=2f22a284962b1440fb41c63084fddcddd8dbe03d;hpb=fa1580196b809e6f14e59e59fe92d36664b49f27;p=plomrogue diff --git a/server/config/io.py b/server/config/io.py index 2f22a28..4631638 100644 --- a/server/config/io.py +++ b/server/config/io.py @@ -1,14 +1,35 @@ +# 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. + + +from server.worldstate_write_helpers import write_inventory, write_fov_map, \ + write_mem_map + + """File IO database.""" io_db = { "path_save": "save", "path_record": "record_save", - "path_worldconf": "confserver/world", "path_server": "server_run/", "path_in": "server_run/in", "path_out": "server_run/out", "path_worldstate": "server_run/worldstate", "tmp_suffix": "_tmp", "kicked_by_rival": False, - "worldstate_updateable": False + "worldstate_updateable": False, + "wait_on_read_fail": 0.03333, + "max_wait_on_read_fail": 5, + "save_wait": 15, + "worldstate_write_order": [ + ["TURN", "world_int"], + ["T_LIFEPOINTS", "player_int"], + ["T_SATIATION", "player_int"], + [write_inventory, "func"], + ["T_POSY", "player_int"], + ["T_POSX", "player_int"], + ["MAP_LENGTH", "world_int"], + [write_fov_map, "func"], + [write_mem_map, "func"] + ] } -