Skip to content
This repository was archived by the owner on Jun 14, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions endlessparser/datatypes/Map.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ def haze(self) -> Optional[str]:
def links(self) -> List[str]:
return [child.tokens_as_string() for child in self._find_children("link")]

def planets(self) -> List[str]:
l = []
for object in self.objects():
if object.tokens: l.append(object.tokens_as_string())
for o in object.objects(): #To include stations
if o.tokens: l.append(o.tokens_as_string())
return l

def minables(self) -> Dict[str, Tuple[float, float]]:
d = {}
for child in self._find_children("minables"):
Expand Down