MCPcopy Create free account
hub / github.com/Norbyte/bg3se / ClearSystemUpdateHooks

Method ClearSystemUpdateHooks

BG3Extender/GameDefinitions/EntitySystem.cpp:1761–1772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759}
1760
1761void EntitySystemHelpersBase::ClearSystemUpdateHooks()
1762{
1763 for (unsigned i = 0; i < systemHooks_.size(); i++) {
1764 if (systemHooks_[i].OriginalUpdateProc != nullptr) {
1765 auto& system = GetEntityWorld()->Systems.Systems[i];
1766 system.UpdateProc = systemHooks_[i].OriginalUpdateProc;
1767 }
1768 }
1769
1770 systemToId_.clear();
1771 systemHooks_.clear();
1772}
1773
1774
1775void ServerEntitySystemHelpers::Setup()

Callers

nothing calls this directly

Calls 3

GetEntityWorldFunction · 0.85
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected