MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / cellMapper

Function cellMapper

src/modules/ui/hooks/LevelBrowserLayer.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 static std::optional<LevelCell*> cellMapper(CCNode* cell) {
40 auto lc = typeinfo_cast<LevelCell*>(cell);
41 return lc && isValidLevelType(lc->m_level->m_levelType) ? std::optional{lc} : std::nullopt;
42 }
43
44 $override
45 void setupLevelBrowser(CCArray* p0) {

Callers

nothing calls this directly

Calls 1

isValidLevelTypeFunction · 0.85

Tested by

no test coverage detected