document World.hidden

This commit is contained in:
Fabian Dill 2021-08-27 20:46:23 +02:00
parent 5bb8de500a
commit 104cc0ea83
2 changed files with 4 additions and 1 deletions

View File

@ -147,7 +147,7 @@ def main(args, seed=None):
longest_name = max(len(text) for text in AutoWorld.AutoWorldRegister.world_types)
numlength = 8
for name, cls in AutoWorld.AutoWorldRegister.world_types.items():
if not getattr(cls, "hidden", False):
if not cls.hidden:
logger.info(f" {name:{longest_name}}: {len(cls.item_names):3} Items | "
f"{len(cls.location_names):3} Locations")
logger.info(f" Item IDs: {min(cls.item_id_to_name):{numlength}} - "

View File

@ -91,6 +91,9 @@ class World(metaclass=AutoWorldRegister):
# the client finds its own items in its own world.
remote_items: bool = True
# Hide World Type from various views. Does not remove functionality.
hidden = False
# autoset on creation:
world: MultiWorld
player: int