X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fconfig%2Fio.py;fp=server%2Fconfig%2Fio.py;h=463163843aeb2bdfc76c8866371e259d24813e29;hb=6f76684b256fdbd680224bdc47d32ef332d1a852;hp=ec6a8aedc6c568e17fdc6ddb64debb35591ea8bf;hpb=009f06a7a2baef5af4474b18fd75b19c05befb4f;p=plomrogue diff --git a/server/config/io.py b/server/config/io.py index ec6a8ae..4631638 100644 --- a/server/config/io.py +++ b/server/config/io.py @@ -3,6 +3,10 @@ # 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", @@ -16,5 +20,16 @@ io_db = { "worldstate_updateable": False, "wait_on_read_fail": 0.03333, "max_wait_on_read_fail": 5, - "save_wait": 15 + "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"] + ] }