コード例 #1
0
ファイル: context.py プロジェクト: marius851000/skytemple
 def _get_special_words_uncached(self):
     pro = RomProject.get_current()
     yield from self.get_static_data().script_data.op_codes__by_name.keys()
     yield from (x.name.replace('$', '') for x in SsbConstant.collect_all(
         self.get_static_data().script_data))
     yield from EXPS_KEYWORDS
     yield from pro.get_string_provider().get_all(StringType.POKEMON_NAMES)
コード例 #2
0
 def get_special_words(self) -> Iterable[str]:
     """
     Just returns the script operations and constants,
     more data is only supported by the main SkyTemple application
     """
     yield from self._static_data.script_data.op_codes__by_name.keys()
     yield from (
         x.name.replace('$', '')
         for x in SsbConstant.collect_all(self._static_data.script_data))
     yield from EXPS_KEYWORDS
コード例 #3
0
 def all_constants(self):
     return list(SsbConstant.collect_all(self.constant_source))
コード例 #4
0
 def __init__(self, rom_data: Pmd2Data):
     super().__init__()
     self.all_constants = list(SsbConstant.collect_all(rom_data.script_data))