mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
33 lines
820 B
Python
33 lines
820 B
Python
|
import typing as t
|
||
|
|
||
|
from dev_tools.keywords.base import GenerateKeyword
|
||
|
|
||
|
|
||
|
class GenerateMapWorld(GenerateKeyword):
|
||
|
output_file = './tasks/map/keywords/world.py'
|
||
|
|
||
|
def iter_keywords(self) -> t.Iterable[dict]:
|
||
|
|
||
|
def to_id(name):
|
||
|
return self.find_keyword(name, lang='en')[0]
|
||
|
|
||
|
yield dict(
|
||
|
text_id=to_id('Herta Space Station'),
|
||
|
world_id=0,
|
||
|
short_name='Herta'
|
||
|
)
|
||
|
yield dict(
|
||
|
text_id=to_id('Jarilo-VI'),
|
||
|
world_id=1,
|
||
|
short_name='Jarilo'
|
||
|
)
|
||
|
yield dict(
|
||
|
text_id=to_id('The Xianzhou Luofu'),
|
||
|
world_id=2,
|
||
|
short_name='Luofu'
|
||
|
)
|
||
|
yield dict(
|
||
|
text_id=to_id('Penacony'),
|
||
|
world_id=3,
|
||
|
short_name='Penacony'
|
||
|
)
|