//
// cocos2d::CCActionInterval::initWithDuration from 0xac0ff0 to 0xac1038 (72 bytes)
//
// 39 xrefs:
// > cocos2d::CCOrbitCamera::initWithDuration @ 0xab4674
// > cocos2d::CCCardinalSplineTo::initWithDuration @ 0xab5490
// > cocos2d::CCActionEase::initWithAction @ 0xab6f4c
// > cocos2d::CCGridAction::initWithDuration @ 0xab95ec
// > cocos2d::CCAccelDeccelAmplitude::initWithAction @ 0xaba030
// > cocos2d::CCAccelAmplitude::initWithAction @ 0xaba15c
// > cocos2d::CCDeccelAmplitude::initWithAction @ 0xaba288
// > cocos2d::CCActionInterval::create @ 0xac1094
// > cocos2d::CCActionInterval::copyWithZone @ 0xac10dc
// > cocos2d::CCActionInterval::copyWithZone @ 0xac1164
// > cocos2d::CCRotateTo::initWithDuration @ 0xac14a4
// > cocos2d::CCSkewTo::initWithDuration @ 0xac14e4
// > cocos2d::CCSequence::initWithTwoActions @ 0xac158c
// > cocos2d::CCRepeat::initWithAction @ 0xac1a08
// > cocos2d::CCRotateTo::initWithDuration @ 0xac1e04
// > cocos2d::CCRotateBy::initWithDuration @ 0xac1f4c
// > cocos2d::CCRotateBy::initWithDuration @ 0xac2008
// > cocos2d::CCMoveBy::initWithDuration @ 0xac21c4
// > cocos2d::CCMoveTo::initWithDuration @ 0xac2408
// > cocos2d::CCJumpBy::initWithDuration @ 0xac287c
// > cocos2d::CCBezierBy::initWithDuration @ 0xac2cdc
// > cocos2d::CCBezierTo::initWithDuration @ 0xac3120
// > cocos2d::CCScaleTo::initWithDuration @ 0xac3250
// > cocos2d::CCScaleTo::initWithDuration @ 0xac3310
// > cocos2d::CCBlink::initWithDuration @ 0xac36cc
// > cocos2d::CCFadeIn::create @ 0xac38ac
// > cocos2d::CCFadeOut::create @ 0xac3928
// > cocos2d::CCFadeTo::initWithDuration @ 0xac3960
// > cocos2d::CCTintTo::initWithDuration @ 0xac3aec
// > cocos2d::CCTintBy::initWithDuration @ 0xac3cac
// > cocos2d::CCDelayTime::create @ 0xac3ecc
// > cocos2d::CCSpawn::initWithTwoActions @ 0xac3f20
// > cocos2d::CCReverseTime::initWithAction @ 0xac43f8
// > cocos2d::CCAnimate::initWithAnimation @ 0xac45b8
// > cocos2d::CCTargetedAction::initWithTarget @ 0xac4a5c
// > cocos2d::CCProgressTo::initWithDuration @ 0xac64ec
// > cocos2d::CCProgressFromTo::initWithDuration @ 0xac667c
// > cocos2d::CCActionTween::initWithDuration @ 0xac9dd4
// > ??> @ 0x47d60
//
// 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 cocos2d::CCActionInterval::initWithDuration(cocos2d::CCActionInterval *a1, float a2)
{
bool result; // w0
if ( a2 == 0.0 )
{
a1->m_bFirstTick = 1;
a1->m_fDuration = 0.00000011921;
result = 1;
}
else
{
a1->m_fDuration = a2;
result = 1;
a1->m_bFirstTick = 1;
}
a1->m_elapsed = 0.0;
return result;
}