2021-01-03 13:32:32 +00:00
|
|
|
from typing import NamedTuple, Union
|
|
|
|
|
|
|
|
|
|
|
|
class PlandoItem(NamedTuple):
|
|
|
|
item: str
|
|
|
|
location: str
|
|
|
|
world: Union[bool, str] = False # False -> own world, True -> not own world
|
|
|
|
from_pool: bool = True # if item should be removed from item pool
|
|
|
|
|
|
|
|
|
|
|
|
class PlandoConnection(NamedTuple):
|
|
|
|
entrance: str
|
|
|
|
exit: str
|
|
|
|
direction: str # entrance, exit or both
|