MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getParentOfType

Method getParentOfType

src/eepp/scene/node.cpp:904–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904Node* Node::getParentOfType( Uint32 type ) const {
905 Node* node = mParentNode;
906 while ( NULL != node ) {
907 if ( node->isType( type ) )
908 return node;
909 node = node->mParentNode;
910 }
911 return nullptr;
912}
913
914void Node::setLoadingState( bool loading ) {
915 writeNodeFlag( NODE_FLAG_LOADING, loading ? 1 : 0 );

Callers

nothing calls this directly

Calls 1

isTypeMethod · 0.45

Tested by

no test coverage detected