//
// GJMapObject::create from 0x50de08 to 0x50de84 (124 bytes)
//
// 2 xrefs:
// > GJMapObject::createMonster @ 0x50e46e
// > MapSelectLayer::init @ 0x50f7dc
//
// 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
//
GJMapObject *GJMapObject::create(cocos2d::CCNode *a1)
{
GJMapObject *v2; // r4
GJMapObject_vtbl *v3; // r3
int *v4; // r0
v2 = (GJMapObject *)operator new(0x12Cu);
cocos2d::CCNode::CCNode(v2);
v2->m_mainNode = nullptr;
v2->m_jumpStopTime = 0.0;
v2->m_shadowSprite = nullptr;
v2->__vftable = (GJMapObject_vtbl *)&off_A82C90;
cocos2d::CCPoint::CCPoint(&v2->m_objectOrigin);
v2->m_monsterIdle = 0;
v2->m_monsterMoving = 0;
v2->m_monstersTouched = 0;
v2->m_objectOffset = 0.0;
v2->m_moveStopTime = 0.0;
if ( GJMapObject::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->__vftable;
v4 = (int *)v2;
v2 = nullptr;
v3->~GJMapObject_0((GJMapObject *)v4);
}
return v2;
}