MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / callObjectUnload

Function callObjectUnload

src/OpenLoco/src/Objects/ObjectManager.cpp:344–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342 }
343
344 static void callObjectUnload(const ObjectType type, Object& obj)
345 {
346 return visitObject(type, obj, [](auto&& obj) {
347 return obj->unload();
348 });
349 }
350
351 static void callObjectLoad(const LoadedObjectHandle& handle, Object& obj, std::span<const std::byte> data, DependentObjects* dependencies = nullptr)
352 {

Callers 1

unloadFunction · 0.85

Calls 2

visitObjectFunction · 0.85
unloadMethod · 0.45

Tested by

no test coverage detected