X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new2%2Fplomrogue%2Fio.py;h=2283a986d10717511778b1d79aa5dca4b4919557;hb=47d047c10bacf2463f48aec3e7f3cc3b92a78198;hp=d740f8c42972879e9f911d21ba5edf5e6d9c1e84;hpb=51bd8dbd1de6f513fdaffa65732314b7356a1680;p=plomrogue2-experiments diff --git a/new2/plomrogue/io.py b/new2/plomrogue/io.py index d740f8c..2283a98 100644 --- a/new2/plomrogue/io.py +++ b/new2/plomrogue/io.py @@ -4,11 +4,12 @@ import queue class GameIO(): - def __init__(self, game): + def __init__(self, game, save_file='savefile'): from plomrogue.parser import Parser self.clients = {} self.parser = Parser(game) self.game = game + self.save_file = save_file def loop(self, q): """Handle commands coming through queue q, run game, send results back."""