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

Method FindIndex

engine/Poseidon/Network/NetworkMsg.cpp:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 _items.Clear();
269 _map.Clear();
270}
271
272int NetworkMessageFormatBase::FindIndex(const char* name) const
273{
274 const NameToIndex& item = _map[name];
275 if (_map.NotNull(item))
276 {
277 return item.index;
278 }
279 else
280 {
281 LOG_DEBUG(Network, "Warning: item {} not found", name);
282 return -1;
283 }
284}
285

Callers 2

ScanMethod · 0.80
ScanMethod · 0.80

Calls 1

NotNullMethod · 0.45

Tested by

no test coverage detected