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

Method Get

BG3Extender/GameDefinitions/EntitySystem.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118ComponentTypeEntry const* ComponentRegistry::Get(ComponentTypeIndex index) const
119{
120 auto idx = (uint32_t)SparseHashMapHash(index);
121 if (Bitmask[idx]) {
122 return &Types[idx];
123 } else {
124 return nullptr;
125 }
126}
127
128ComponentCallbacks* ComponentCallbackRegistry::Get(ComponentTypeIndex index)
129{

Callers 9

RemoveComponentMethod · 0.45
PrepareAddComponentMethod · 0.45
FinalizeAddComponentMethod · 0.45
AddComponentChangeMethod · 0.45
GetComponentIndexMethod · 0.45
ValidateEntityChangesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected