X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/gitweb.css?a=blobdiff_plain;f=plomrogue%2Fcommands.py;h=f8c8e3aa5aa139d3ece7746abe37162ed7ad58f9;hb=ff01e1b466c1df7c938d1281ca34718e555bcf67;hp=e75cbe9001f495a0177d65ee0859d148486e897f;hpb=8c5624db0c2b463a490a425fc0f8baf2761d7d23;p=plomrogue2 diff --git a/plomrogue/commands.py b/plomrogue/commands.py index e75cbe9..f8c8e3a 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -105,3 +105,11 @@ def cmd_MAP(game, geometry, size): map_geometry_class = globals()['MapGeometry' + geometry] game.new_world(map_geometry_class(size)) cmd_MAP.argtypes = 'string:map_geometry yx_tuple:pos' + +def cmd_MAP_CONTROL_LINE(game, y, line): + game.map_control.set_line(y, line) +cmd_MAP_CONTROL_LINE.argtypes = 'int:nonneg string' + +def cmd_MAP_CONTROL_PW(game, tile_class, password): + game.map_control_passwords[tile_class] = password +cmd_MAP_CONTROL_PW.argtypes = 'char string'