home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor worldstate file writing, make it more extensible.
[plomrogue]
/
roguelike-client
diff --git
a/roguelike-client
b/roguelike-client
index 7bb862272caac1bce5949efef6eadb237d011c45..629d4dc4e448243b0842720c0d8de67af09110b7 100755
(executable)
--- a/
roguelike-client
+++ b/
roguelike-client
@@
-1,11
+1,15
@@
#!/usr/bin/python3
#!/usr/bin/python3
+# 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.
+
+
import curses
import os
import signal
import time
import curses
import os
import signal
import time
-
from client.config.world_data import world_data
from client.config.io import io
from client.config.commands import commands
from client.config.world_data import world_data
from client.config.io import io
from client.config.commands import commands
@@
-36,6
+40,7
@@
def read_worldstate():
read_worldstate.last_checked_mtime = mtime
read_anew = True
if read_anew:
read_worldstate.last_checked_mtime = mtime
read_anew = True
if read_anew:
+ # TODO: Hardcode order of necessary fields, ensure order dependencies.
redraw_windows = True
world_data["turn"] = int(turn_string)
for entry in io["worldstate_read_order"]:
redraw_windows = True
world_data["turn"] = int(turn_string)
for entry in io["worldstate_read_order"]: