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

Method RegisterCooker

modules/tools/tool_core/src/asset/cook_system.cpp:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void SCookSystemImpl::RegisterCooker(bool isDefault, skr_guid_t cooker, skr_guid_t type, SCooker* instance)
301{
302 SKR_ASSERT(instance->system == nullptr);
303 instance->system = this;
304 cookers.insert(std::make_pair(cooker, instance));
305 if (isDefault)
306 {
307 auto result = defaultCookers.insert(std::make_pair(type, instance));
308 SKR_ASSERT(result.second);
309 (void)result;
310 }
311}
312
313void SCookSystemImpl::UnregisterCooker(skr_guid_t guid)
314{

Callers 1

RegisterCookerToSystemFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected