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

Method BindSystem

BG3Extender/GameDefinitions/EntitySystem.cpp:923–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923void EntitySystemHelpersBase::BindSystem(StringView name, SystemTypeIndex systemId)
924{
925 auto it = systemIndexMappings_.insert(std::make_pair(name, systemId));
926 if (systemTypeIdToName_.size() <= (unsigned)systemId) {
927 systemTypeIdToName_.resize((unsigned)systemId + 1);
928 }
929
930 systemTypeIdToName_[(unsigned)systemId] = &it.first->first;
931}
932
933void EntitySystemHelpersBase::BindStaticData(StringView name, resource::StaticDataTypeIndex id)
934{

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected