Adding first apworld
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from BaseClasses import Entrance, Region
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .world import NodecamesWorld
|
||||
|
||||
|
||||
def create_and_connect_regions(world: NodecamesWorld) -> None:
|
||||
create_all_regions(world)
|
||||
connect_regions(world)
|
||||
|
||||
|
||||
def create_all_regions(world: NodecamesWorld) -> None:
|
||||
overworld = Region("Overworld", world.player, world.multiworld)
|
||||
world.multiworld.regions += [overworld]
|
||||
|
||||
|
||||
def connect_regions(world: NodecamesWorld) -> None:
|
||||
overworld = world.get_region("Overworld")
|
||||
Reference in New Issue
Block a user