Move Direction above Portal

This commit is contained in:
Scipio Wright
2024-07-31 11:23:25 -04:00
committed by GitHub
parent 83c02981dc
commit 676cebb22c

View File

@@ -2,6 +2,18 @@ from typing import Dict, NamedTuple, List
from enum import IntEnum
# the direction you go to enter a portal
class Direction(IntEnum):
none = 0 # for when the direction isn't relevant
north = 1
south = 2
east = 3
west = 4
floor = 5
ladder_up = 6
ladder_down = 7
class Portal(NamedTuple):
name: str # human-readable name
region: str # AP region
@@ -21,18 +33,6 @@ class Portal(NamedTuple):
return self.destination + ", " + self.scene() + self.tag
# the direction you go to enter a portal
class Direction(IntEnum):
none = 0 # for when the direction isn't relevant
north = 1
south = 2
east = 3
west = 4
floor = 5
ladder_up = 6
ladder_down = 7
portal_mapping: List[Portal] = [
Portal(name="Stick House Entrance", region="Overworld",
destination="Sword Cave", tag="_", direction=Direction.north),