X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=new2%2Fplomrogue%2Fcommands.py;h=397dbe45f332aae29d22e6fba8671786496a4316;hb=b28833357c0b67e6146e0ac568f5cfd6696f08cd;hp=df347289f64459ce4718df6aefb6a87a6ec920d2;hpb=47d047c10bacf2463f48aec3e7f3cc3b92a78198;p=plomrogue2-experiments diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py index df34728..397dbe4 100644 --- a/new2/plomrogue/commands.py +++ b/new2/plomrogue/commands.py @@ -39,17 +39,6 @@ def cmd_PING(game, connection_id): game.io.send('PONG') cmd_PING.argtypes = '' -def cmd_SAVE(game): - - def write(f, msg): - f.write(msg + '\n') - - with open(game.io.save_file, 'w') as f: - write(f, 'TURN %s' % game.turn) - for y, line in game.map.lines(): - write(f, 'MAP_LINE %5s %s' % (y, quote(line))) -cmd_SAVE.argtypes = '' - def cmd_TURN(game, n): game.turn = n cmd_TURN.argtypes = 'int:nonneg'