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

Function DeleteNetworkObject

Source/Engine/Networking/NetworkReplicator.cpp:842–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840}
841
842void DeleteNetworkObject(ScriptingObject* obj)
843{
844 // Remove from the mapping table
845 const Guid id = obj->GetID();
846 IdsRemappingTable.Remove(id);
847 IdsRemappingTable.RemoveValue(id);
848
849 if (obj->Is<Script>() && ((Script*)obj)->GetParent())
850 ((Script*)obj)->GetParent()->DeleteObject();
851 else
852 obj->DeleteObject();
853}
854
855bool IsParentOf(ScriptingObject* obj, ScriptingObject* parent)
856{

Calls 4

GetIDMethod · 0.80
DeleteObjectMethod · 0.80
RemoveMethod · 0.45
GetParentMethod · 0.45

Tested by

no test coverage detected