| 957 | } |
| 958 | |
| 959 | void 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 | |
| 969 | void EntitySystemHelpersBase::UpdateComponentMappings() |
| 970 | { |