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

Method BindReplication

BG3Extender/GameDefinitions/EntitySystem.cpp:959–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959void EntitySystemHelpersBase::BindReplication(StringView name, ReplicationTypeIndex id)
960{
961 auto it = componentNameToIndexMappings_.find(STDString(name));
962 if (it == componentNameToIndexMappings_.end()) {
963 componentNameToIndexMappings_.insert(std::make_pair(name, IndexMappings{UndefinedComponent, id}));
964 } else {
965 it->second.ReplicationIndex = id;
966 }
967}
968
969void EntitySystemHelpersBase::UpdateComponentMappings()
970{

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected