//
// SecretLayer2::SecretLayer2 from 0x100311a80 to 0x100311b04 (132 bytes)
//
// 1 xrefs:
// > SecretLayer2::create @ 0x100309704
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SecretLayer2 *__fastcall SecretLayer2::SecretLayer2(SecretLayer2 *a1)
{
SecretLayer2 *result; // x0
result = (SecretLayer2 *)cocos2d::CCLayer::CCLayer((__int64)a1);
result->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SecretLayer2_vtbl *)off_1007ED678;
result->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1007EDB20;
result->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1007EDB90;
result->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1007EDBA8;
result->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_1007EDBC8;
result->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1007EDBE8;
result->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)off_1007EDC10;
result->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_1007EDC58;
result->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&off_1007EDC70;
*(_OWORD *)&result->m_threadTag = xmmword_1006360C0;
*(_QWORD *)&result->m_basicMessageCount = 0xFFFFFFFF00000000LL;
result->m_messageThreads = nullptr;
result->m_exiting = 0;
result->m_searchInput = nullptr;
result->m_messageLabel = nullptr;
result->m_doorDialogIndex = -1;
result->m_secretLevelLabels = nullptr;
result->m_secretDoorButton = nullptr;
result->m_secretLevelButton = nullptr;
return result;
}