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

Method GetType

BG3Extender/Osiris/Shared/NodeHooks.cpp:159–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 NodeType NodeVMTWrappers::GetType(Node * node)
160 {
161 NodeVMT * vfptr = *reinterpret_cast<NodeVMT **>(node);
162 auto typeIt = vmtToTypeMap_.find(vfptr);
163 if (typeIt == vmtToTypeMap_.end()) Fail("Called virtual method on a node that could not be identified");
164 return typeIt->second;
165 }
166
167 NodeVMTWrapper & NodeVMTWrappers::GetWrapper(Node * node)
168 {

Callers 5

SendSyncStoryMethod · 0.45
IsValidPostHookMethod · 0.45

Calls 3

FailFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected