MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ResolveObject

Function ResolveObject

Source/Engine/Networking/NetworkReplicator.cpp:347–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347NetworkReplicatedObject* ResolveObject(Guid objectId)
348{
349 auto it = Objects.Find(objectId);
350 if (it != Objects.End())
351 return &it->Item;
352 IdsRemappingTable.TryGet(objectId, objectId);
353 it = Objects.Find(objectId);
354 return it != Objects.End() ? &it->Item : nullptr;
355}
356
357NetworkReplicatedObject* ResolveObject(Guid objectId, Guid parentId, const StringAnsiView& objectTypeName)
358{

Calls 9

FindScriptingTypeFunction · 0.85
FindMethod · 0.45
EndMethod · 0.45
TryGetMethod · 0.45
GetMethod · 0.45
ContainsValueMethod · 0.45
ToStringMethod · 0.45
GetTypeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected