コード例 #1
0
 /// <summary>
 /// Get data associated to keyframe.
 /// </summary>
 /// <param name="keyframe">keyframe</param>
 /// <param name="data">output of data</param>
 /// <returns>true on success</returns>
 public bool GetKeyframeData(int keyframe, out AnimaSeqBase.Keyframe data)
 {
     if (keyframe < m_kStart)
     {
         keyframe = m_kStart;
     }
     if (keyframe > m_kEnd)
     {
         keyframe = m_kEnd;
     }
     data = m_keyframes[keyframe - m_kStart];
     return(true);
 }
コード例 #2
0
ファイル: Anima.cs プロジェクト: justburn/SE_Anima
 /// <summary>
 /// Get data associated to keyframe.
 /// </summary>
 /// <param name="keyframe">keyframe</param>
 /// <param name="data">output of data</param>
 /// <returns>true on success</returns>
 public bool GetKeyframeData(int keyframe, out AnimaSeqBase.Keyframe data)
 {
     if (m_kEnd == 0)
     {
         // No data! Shouldn't happen!
         data = new AnimaSeqBase.Keyframe();
         return false;
     }
     if (keyframe < m_kStart) keyframe = m_kStart;
     if (keyframe > m_kEnd) keyframe = m_kEnd;
     data = m_keyframes[keyframe - m_kStart];
     return true;
 }