MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / list_options

Function list_options

PythonAPI/util/config.py:55–63  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

53
54
55def 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
66def list_blueprints(world, bp_filter):

Callers 1

mainFunction · 0.85

Calls 2

wrapFunction · 0.85
find_weather_presetsFunction · 0.70

Tested by

no test coverage detected