MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / removeChild

Method removeChild

Source/Platformer/PlatformWorld.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void PlatformWorld::removeChild(Node* child, bool cleanup) {
49 Node* layer = PlatformWorld::getLayer(child->getOrder());
50 if (layer == child)
51 PhysicsWorld::removeChild(child, cleanup);
52 else
53 layer->removeChild(child, cleanup);
54}
55
56Node* PlatformWorld::getLayer(int order) {
57 auto it = _layers.find(order);

Callers

nothing calls this directly

Calls 1

getOrderMethod · 0.80

Tested by

no test coverage detected