X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=server.py;h=9791d5f0bacf830fd4faa19a2b23b6184c2be0b1;hb=64bf1873a6686c1bc974321c13d3c9f7800db0d6;hp=ac26ca7f1c39dd0e1853c038ff80df2a393b2844;hpb=52a7b4e9b1ef3e38701409d963f49033c23d4eaf;p=plomrogue2-experiments
diff --git a/server.py b/server.py
index ac26ca7..9791d5f 100755
--- a/server.py
+++ b/server.py
@@ -2,7 +2,6 @@
import sys
import os
import server_.game
-import server_.io
if len(sys.argv) != 2:
@@ -21,7 +20,7 @@ if os.path.exists(game_file_name):
print("FILE INPUT LINE %s: %s" % (i, line), end='')
game.io.handle_input(line, store=False)
else:
- game.io.handle_input('MAP_SIZE Y:5,X:5')
+ game.io.handle_input('MAP Hex Y:5,X:5')
game.io.handle_input('TERRAIN_LINE 0 "xxxxx"')
game.io.handle_input('TERRAIN_LINE 1 "x...x"')
game.io.handle_input('TERRAIN_LINE 2 "x.X.x"')
@@ -31,6 +30,4 @@ else:
game.io.handle_input('THING_POS 0 Y:3,X:3')
game.io.handle_input('THING_TYPE 1 monster')
game.io.handle_input('THING_POS 1 Y:1,X:1')
-
-
-server_.io.run_server_with_io_loop(game)
+game.io.run_loop_with_server()