#include <ANamedAnimation.h>
Definition at line 53 of file ANamedAnimation.h.
◆ ANamedAnimationTransitionSet()
ANamedAnimationTransitionSet::ANamedAnimationTransitionSet |
( |
ANamedAnimation * | a_pNamedAnimation, |
|
|
Toshi::T2Allocator * | a_pAllocator ) |
Definition at line 85 of file ANamedAnimation.cpp.
86 : m_pAnimation( a_pNamedAnimation )
87 , m_mapTransitions( a_pAllocator )
89{
90}
◆ ~ANamedAnimationTransitionSet()
ANamedAnimationTransitionSet::~ANamedAnimationTransitionSet |
( |
| ) |
|
◆ AddTransition()
void ANamedAnimationTransitionSet::AddTransition |
( |
ANamedAnimation * | a_pAnimation, |
|
|
const Toshi::TPString8 & | a_strTransitionName, |
|
|
TFLOAT | a_fBlendOutTime, |
|
|
TFLOAT | a_fBlendInTime, |
|
|
TBOOL | a_bIsAutoTransition, |
|
|
TBOOL | a_bManaged ) |
Definition at line 98 of file ANamedAnimation.cpp.
99{
101
102
103 ANamedAnimationTransition transition;
104 transition.m_strTransitionName = a_strTransitionName;
105 transition.m_strAnimationName = a_pAnimation->
GetName();
106 transition.m_fBlendOutTime = a_fBlendOutTime;
107 transition.m_fBlendInTime = a_fBlendInTime;
108 transition.m_bAutoTransition = a_bIsAutoTransition != '\0';
109 transition.m_bManaged = a_bManaged;
110
111 m_mapTransitions.Insert( a_pAnimation->
GetName(), transition );
112
113 if ( a_bIsAutoTransition )
114 m_strAnimationName = a_pAnimation->
GetName();
115}
const Toshi::TPString8 & GetName() const
◆ FindTransition()
Definition at line 118 of file ANamedAnimation.cpp.
119{
120 auto it = m_mapTransitions[ a_strName ];
121 return ( it == m_mapTransitions.End() ) ?
TNULL : &it.GetValue()->second;
122}
◆ GetDestTransition()
Definition at line 125 of file ANamedAnimation.cpp.
126{
127 if ( !m_strAnimationName.IsEmpty() )
128 {
130 }
131
133}
ANamedAnimationTransition * FindTransition(const Toshi::TPString8 &a_strName)
◆ ANamedAnimation
The documentation for this class was generated from the following files: