home · contact · privacy
Server: Make map generator selectable.
[plomrogue] / server / config / io.py
1 # This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
2 # or any later version. For details on its copyright, license, and warranties,
3 # see the file NOTICE in the root directory of the PlomRogue source package.
4
5
6 from server.worldstate_write_helpers import write_inventory, write_fov_map, \
7         write_mem_map
8
9
10 """File IO database."""
11 io_db = {
12     "path_save": "save",
13     "path_record": "record_save",
14     "path_server": "server_run/",
15     "path_in": "server_run/in",
16     "path_out": "server_run/out",
17     "path_worldstate": "server_run/worldstate",
18     "tmp_suffix": "_tmp",
19     "kicked_by_rival": False,
20     "worldstate_updateable": False,
21     "wait_on_read_fail": 0.03333,
22     "max_wait_on_read_fail": 5,
23     "save_wait": 15,
24     "worldstate_write_order": [
25         ["TURN", "world_int"],
26         ["T_LIFEPOINTS", "player_int"],
27         ["T_SATIATION", "player_int"],
28         [write_inventory, "func"],
29         ["T_POSY", "player_int"],
30         ["T_POSX", "player_int"],
31         ["MAP_LENGTH", "world_int"],
32         [write_fov_map, "func"],
33         [write_mem_map, "func"]
34     ]
35 }