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

Function AnimNameToIndex

trinity/Tr2GrannyAnimation.cpp:121–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120#if WITH_GRANNY
121int AnimNameToIndex( const granny_file_info* fi, const char* name )
122{
123 int index = fi->AnimationCount;
124
125 for( int i = 0; i < fi->AnimationCount; ++i )
126 {
127 if( strcmp( fi->Animations[i]->Name, name ) == 0 )
128 {
129 index = i;
130 break;
131 }
132 }
133
134 return index;
135}
136#endif
137
138const cmf::Data* GetSecondaryCMFFileInfo( const std::string& cmfResPath, const TriGrannyResPtr grannyPtr )

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected