import sys
import os
import server_.game
-import server_.io
if len(sys.argv) != 2:
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 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"')
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()