| 840 | } |
| 841 | |
| 842 | void 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 | |
| 855 | bool IsParentOf(ScriptingObject* obj, ScriptingObject* parent) |
| 856 | { |
no test coverage detected