File size: 402 Bytes
f8657ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from worlds.maple_street import WORLD as MAPLE_STREET
from worlds.riverside_campus import WORLD as RIVERSIDE_CAMPUS

WORLDS = {
    "maple_street": MAPLE_STREET,
    "riverside_campus": RIVERSIDE_CAMPUS,
}


def get_world(world_id):
    return WORLDS.get(world_id)


def list_worlds():
    return [
        {"id": wid, "name": w["name"], "theme": w["theme"]}
        for wid, w in WORLDS.items()
    ]