mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Auto import worlds to trigger registration
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import enum
|
||||
import importlib
|
||||
import os
|
||||
|
||||
__all__ = {"lookup_any_item_id_to_name",
|
||||
"lookup_any_location_id_to_name",
|
||||
"network_data_package",
|
||||
"Games"}
|
||||
|
||||
# all of the below should be moved to AutoWorld functionality
|
||||
from .alttp.Items import lookup_id_to_name as alttp
|
||||
from .hk.Items import lookup_id_to_name as hk
|
||||
from .factorio import Technologies
|
||||
@@ -38,3 +41,11 @@ class Games(str, enum.Enum):
|
||||
LTTP = "A Link to the Past"
|
||||
Factorio = "Factorio"
|
||||
Minecraft = "Minecraft"
|
||||
|
||||
|
||||
# end of TODO block
|
||||
|
||||
# import all submodules to trigger AutoWorldRegister
|
||||
for file in os.scandir(os.path.dirname(__file__)):
|
||||
if file.is_dir():
|
||||
importlib.import_module(f".{file.name}", "worlds")
|
||||
|
Reference in New Issue
Block a user