Exemple #1
0
 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)
 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
 def all_constants(self):
     return list(SsbConstant.collect_all(self.constant_source))
Exemple #4
0
 def __init__(self, rom_data: Pmd2Data):
     super().__init__()
     self.all_constants = list(SsbConstant.collect_all(rom_data.script_data))