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

Method onEnter

Source/Node/Node.cpp:424–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void Node::onEnter() {
425 ARRAY_START(Node, child, _children) {
426 child->onEnter();
427 }
428 ARRAY_END
429 _flags.setOn(Node::Running);
430 if (isUpdating() || isScheduled()) {
431 auto updateItem = getUpdateItem();
432 if (!updateItem->scheduled()) {
433 _scheduler->schedule(updateItem->scheduledItem.get());
434 }
435 }
436 if (isFixedUpdating()) {
437 auto fixedScheduledItem = getFixedScheduledItem();
438 if (!fixedScheduledItem->iter) {
439 _scheduler->scheduleFixed(fixedScheduledItem);
440 }
441 }
442 resumeActionInList(_action);
443 markDirty();
444 post("Enter"_slice);
445}
446
447void Node::onExit() {
448 ARRAY_START(Node, child, _children) {

Callers 6

ARRAY_STARTFunction · 0.45
addChildMethod · 0.45
getUIMethod · 0.45
getUI3DMethod · 0.45
getEntryMethod · 0.45
getPostNodeMethod · 0.45

Calls 6

markDirtyFunction · 0.85
postFunction · 0.85
scheduledMethod · 0.80
scheduleFixedMethod · 0.80
getMethod · 0.65
scheduleMethod · 0.45

Tested by

no test coverage detected