home · contact · privacy
Add TASK command to request available commands.
[plomrogue2] / plomrogue / commands.py
index c2484bf5d228ea1407e63caab79be1000554d3e0..e75cbe9001f495a0177d65ee0859d148486e897f 100644 (file)
@@ -4,6 +4,11 @@ from plomrogue.mapping import YX, MapGeometrySquare, MapGeometryHex
 
 
 
+def cmd_TASKS(game, connection_id):
+    tasks = []
+    game.io.send('TASKS ' + ','.join(game.tasks.keys()), connection_id)
+cmd_TASKS.argtypes = ''
+
 def cmd_ALL(game, msg, connection_id):
     if not connection_id in game.sessions:
         raise GameError('need to be logged in for this')