mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-29 19:03:25 -07:00
Move Direction above Portal
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user