MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetObject

Method GetObject

engine/Poseidon/Network/NetworkClientActions.cpp:2181–2205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2179 totBytes = Poseidon::NetworkMissionHeaderTransferSize(_missionHeader.fileSizeL, _missionHeader.fileSizeH);
2180 if (totBytes > 0 && !_missionTransferHeaderStatsLogged)
2181 {
2182 LOG_DEBUG(Network, "[NMTTransferMission] transfer UI waiting for first segment file='{}' total={}",
2183 (const char*)_missionHeader.fileName, totBytes);
2184 _missionTransferHeaderStatsLogged = true;
2185 }
2186 }
2187}
2188
2189NetworkLocalObjectInfo* NetworkClient::GetLocalObjectInfo(NetworkId& id)
2190{
2191 for (int i = 0; i < _localObjects.Size(); i++)
2192 {
2193 NetworkLocalObjectInfo& info = _localObjects[i];
2194 if (info.id == id)
2195 {
2196 return &info;
2197 }
2198 }
2199 return nullptr;
2200}
2201
2202NetworkRemoteObjectInfo* NetworkClient::GetRemoteObjectInfo(NetworkId& id)
2203{
2204 for (int i = 0; i < _remoteObjects.Size(); i++)
2205 {
2206 NetworkRemoteObjectInfo& info = _remoteObjects[i];
2207 if (info.id == id)
2208 {

Callers

nothing calls this directly

Calls 1

FindObjectMethod · 0.45

Tested by

no test coverage detected