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

Method BindStaticData

BG3Extender/GameDefinitions/EntitySystem.cpp:933–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933void EntitySystemHelpersBase::BindStaticData(StringView name, resource::StaticDataTypeIndex id)
934{
935 auto it = staticDataMappings_.insert(std::make_pair(name, id));
936 if (staticDataIdToName_.size() <= (unsigned)id) {
937 staticDataIdToName_.resize((unsigned)id + 1);
938 }
939
940 staticDataIdToName_[(unsigned)id] = &it.first->first;
941}
942
943void EntitySystemHelpersBase::BindComponent(StringView name, ComponentTypeIndex id)
944{

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected