X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=new2%2Fplomrogue%2Fcommands.py;h=88a5211245c5d22661c6e8ae4460efd5abb44121;hb=c28b4f2c784509f2b620e672b6ad0be06de12afc;hp=4daf0ba5b8365cc19fd98efc6b208407fa2b48f6;hpb=859f7be1bcd0313d0ed5dd5510968cbb18c9b343;p=plomrogue2-experiments
diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py
index 4daf0ba..88a5211 100644
--- a/new2/plomrogue/commands.py
+++ b/new2/plomrogue/commands.py
@@ -28,6 +28,10 @@ def cmd_LOGIN(game, nick, connection_id):
game.io.send('PLAYER_ID %s' % t.id_, connection_id)
cmd_LOGIN.argtypes = 'string'
+def cmd_GET_GAMESTATE(game, connection_id):
+ game.send_gamestate(connection_id)
+cmd_GET_GAMESTATE.argtypes = ''
+
def cmd_QUERY(game, target_nick, msg, connection_id):
if not connection_id in game.sessions:
raise GameError('can only query when logged in')