add World.location_names

This commit is contained in:
Fabian Dill
2021-07-12 15:11:48 +02:00
parent 9821e05386
commit ae32315bf7
11 changed files with 70 additions and 58 deletions

View File

@@ -31,9 +31,10 @@ class World(metaclass=AutoWorldRegister):
player: int
options: dict = {}
topology_present: bool = False # indicate if world type has any meaningful layout/pathing
item_names: Set[str] = frozenset()
item_names: Set[str] = frozenset() # set of all potential item names
# maps item group names to sets of items. Example: "Weapons" -> {"Sword", "Bow"}
item_name_groups: Dict[str, Set[str]] = {}
location_names: Set[str] = frozenset() # set of all potential location names
def __init__(self, world: MultiWorld, player: int):
self.world = world