home · contact · privacy
Server: Start modularizing into separate files.
[plomrogue] / server / config / world_data.py
diff --git a/server/config/world_data.py b/server/config/world_data.py
new file mode 100644 (file)
index 0000000..45acf4f
--- /dev/null
@@ -0,0 +1,15 @@
+"""World state database. With sane default values. (Randomness is in rand.)"""
+world_db = {
+    "TURN": 0,
+    "MAP_LENGTH": 64,
+    "PLAYER_TYPE": 0,
+    "WORLD_ACTIVE": 0,
+    "MAP": False,
+    "ThingActions": {},
+    "ThingTypes": {},
+    "Things": {}
+}
+
+"""Mapping of direction names to internal direction chars."""
+directions_db = {"east": "d", "south-east": "c", "south-west": "x",
+                 "west": "s", "north-west": "w", "north-east": "e"}