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

Method GetComponent

BG3Extender/GameDefinitions/EntitySystem.cpp:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void* EntityStorageData::GetComponent(EntityHandle entityHandle, ComponentTypeIndex type, std::size_t componentSize, bool isProxy) const
281{
282 auto ref = InstanceToPageMap.try_get(entityHandle);
283 if (ref) {
284 return GetComponent(*ref, type, componentSize, isProxy);
285 } else {
286 return nullptr;
287 }
288}
289
290void* EntityStorageData::GetOneFrameComponent(EntityHandle entityHandle, ComponentTypeIndex type) const
291{

Callers 4

GetComponentChangeMethod · 0.45
GetRawComponentMethod · 0.45
GetRawSingletonMethod · 0.45

Calls 1

try_getMethod · 0.45

Tested by

no test coverage detected