MCPcopy Create free account
hub / github.com/axmolengine/axmol / setNotificationNode

Method setNotificationNode

core/base/Director.cpp:1498–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1496}
1497
1498void Director::setNotificationNode(Node* node)
1499{
1500 if (_notificationNode != nullptr)
1501 {
1502 _notificationNode->onExitTransitionDidStart();
1503 _notificationNode->onExit();
1504 _notificationNode->cleanup();
1505 }
1506 AX_SAFE_RELEASE(_notificationNode);
1507
1508 _notificationNode = node;
1509 if (node == nullptr)
1510 return;
1511 _notificationNode->onEnter();
1512 _notificationNode->onEnterTransitionDidFinish();
1513 AX_SAFE_RETAIN(_notificationNode);
1514}
1515
1516void Director::setScheduler(Scheduler* scheduler)
1517{

Callers 1

startAutoTestMethod · 0.80

Calls 5

onExitMethod · 0.45
cleanupMethod · 0.45
onEnterMethod · 0.45

Tested by

no test coverage detected