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

Method BootstrapLua

BG3Extender/Extender/Client/ExtensionStateClient.cpp:72–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ExtensionState::BootstrapLua()
73{
74 ExtensionStateBase::BootstrapLua();
75
76 LuaClientPin lua(*this);
77 auto gameState = GetStaticSymbols().GetClientState();
78 if (gameState
79 && (*gameState == GameState::LoadLevel
80 || (*gameState == GameState::LoadModule && WasStatLoadTriggered())
81 || *gameState == GameState::LoadSession
82 || *gameState == GameState::Paused
83 || *gameState == GameState::PrepareRunning
84 || *gameState == GameState::Running)) {
85 lua->OnModuleResume();
86 }
87}
88
89void ExtensionState::FireInputEvents()
90{

Callers

nothing calls this directly

Calls 2

GetClientStateMethod · 0.80
OnModuleResumeMethod · 0.45

Tested by

no test coverage detected