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

Method HasObject

Source/Engine/Networking/NetworkReplicator.cpp:1584–1599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582}
1583
1584bool NetworkReplicator::HasObject(const ScriptingObject* obj)
1585{
1586 if (obj)
1587 {
1588 ScopeLock lock(ObjectsLock);
1589 const auto it = Objects.Find(obj->GetID());
1590 if (it != Objects.End())
1591 return true;
1592 for (const SpawnItem& item : SpawnQueue)
1593 {
1594 if (item.Object == obj)
1595 return true;
1596 }
1597 }
1598 return false;
1599}
1600
1601void NetworkReplicator::MapObjectId(Guid& objectId)
1602{

Callers 1

InitializeMethod · 0.80

Calls 3

GetIDMethod · 0.80
FindMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected