(client)
| 53 | |
| 54 | |
| 55 | def list_options(client): |
| 56 | maps = [m.replace('/Game/Carla/Maps/', '') for m in client.get_available_maps()] |
| 57 | indent = 4 * ' ' |
| 58 | def wrap(text): |
| 59 | return '\n'.join(textwrap.wrap(text, initial_indent=indent, subsequent_indent=indent)) |
| 60 | print('weather presets:\n') |
| 61 | print(wrap(', '.join(x for _, x in find_weather_presets())) + '.\n') |
| 62 | print('available maps:\n') |
| 63 | print(wrap(', '.join(sorted(maps))) + '.\n') |
| 64 | |
| 65 | |
| 66 | def list_blueprints(world, bp_filter): |
no test coverage detected