| 559 | } |
| 560 | |
| 561 | string CCryModEffAnimation::dump() |
| 562 | { |
| 563 | CryModelAnimationContainer* pAnimations = m_pParent->getAnimationSet(); |
| 564 | const AnimData& rAnim = pAnimations->getAnimation(m_nAnimId); |
| 565 | string strResult; |
| 566 | char szBuf[0x100]; |
| 567 | strResult += "main \"" + rAnim.strName + "\""; |
| 568 | sprintf (szBuf, " t=%.2f", m_fAnimTime); |
| 569 | strResult += szBuf; |
| 570 | if (!m_arrFadeAnims.empty()) |
| 571 | { |
| 572 | strResult += ", fade"; |
| 573 | for (FadingAnimArray::iterator it = m_arrFadeAnims.begin(); it != m_arrFadeAnims.end(); ++it) |
| 574 | { |
| 575 | const AnimData& fadeAnim = pAnimations->getAnimation(it->nAnimId); |
| 576 | sprintf (szBuf, " \"%s\" (t=%.2f b=%.2f)", fadeAnim.strName.c_str(), it->fTime, it->fBlending); |
| 577 | strResult += szBuf; |
| 578 | } |
| 579 | } |
| 580 | return strResult; |
| 581 | } |
| 582 | |
| 583 | void CCryModEffAnimation::deinitClass() |
| 584 | { |