MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / load

Method load

tools/meta_codegen/framework/database.py:190–200  ·  view source on GitHub ↗
(self, load_include_modules: bool, config: config.CodegenConfig)

Source from the content-addressed store, hash-verified

188 self.include_modules: List[ModuleDatabase] = []
189
190 def load(self, load_include_modules: bool, config: config.CodegenConfig):
191 # load main module
192 self.main_module = ModuleDatabase()
193 self.main_module.load(config.main_module, config)
194
195 # load include modules
196 if load_include_modules:
197 for include_module in config.include_modules:
198 module_db = ModuleDatabase()
199 module_db.load(include_module, config)
200 self.include_modules.append(module_db)
201
202 def each_cpp_types_with_attr(self, visitor) -> None:
203 self.main_module.each_cpp_types_with_attr(visitor)

Callers

nothing calls this directly

Calls 3

loadMethod · 0.95
ModuleDatabaseClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected