MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetAnimationLayer

Method GetAnimationLayer

trinity/Tr2GrannyAnimation.cpp:303–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303Tr2GrannyAnimationLayer* Tr2GrannyAnimation::GetAnimationLayer( const char* name )
304{
305 if( !name )
306 {
307 return &m_baseLayer;
308 }
309
310 auto it = m_animationLayers.find( name );
311 if( it != m_animationLayers.end() )
312 {
313 return &it->second;
314 }
315
316 return nullptr;
317}
318
319bool Tr2GrannyAnimation::Initialize()
320{

Callers 3

IsAnimationPlayingFunction · 0.80
CanTransitionMethod · 0.80
StopMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected