Clients: add docstrings to /items and /locations

This commit is contained in:
Fabian Dill 2021-12-03 05:14:44 +01:00
parent 3110763052
commit 9d3cbb19f9
1 changed files with 2 additions and 0 deletions

View File

@ -82,11 +82,13 @@ class ClientCommandProcessor(CommandProcessor):
return True
def _cmd_items(self):
"""List all item names for the currently running game."""
self.output(f"Item Names for {self.ctx.game}")
for item_name in AutoWorldRegister.world_types[self.ctx.game].item_name_to_id:
self.output(item_name)
def _cmd_locations(self):
"""List all location names for the currently running game."""
self.output(f"Location Names for {self.ctx.game}")
for location_name in AutoWorldRegister.world_types[self.ctx.game].location_name_to_id:
self.output(location_name)