//
// GJChestSprite::init from 0x1001c8114 to 0x1001c8178 (100 bytes)
//
// 1 xrefs:
// > GJChestSprite::create @ 0x1001c5b70
//
// 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
//
bool __fastcall GJChestSprite::init(GJChestSprite *a1, int a2)
{
_BOOL4 v4; // w19
v4 = cocos2d::CCSprite::init(a1);
if ( v4 )
{
a1->m_chestType = a2;
((void (__fastcall *)(GJChestSprite *, void *))a1->setContentSize)(a1, &unk_10086C538);
GJChestSprite::switchToState(a1, Closed, 0);
}
return v4;
}