| 1582 | } |
| 1583 | |
| 1584 | bool 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 | |
| 1601 | void NetworkReplicator::MapObjectId(Guid& objectId) |
| 1602 | { |
no test coverage detected