MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getAnimationIndexByName

Method getAnimationIndexByName

Source/Animation/ModelDef.cpp:190–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int ModelDef::getAnimationIndexByName(String name) {
191 auto it = _animationIndex.find(name);
192 if (it != _animationIndex.end()) {
193 return it->second;
194 }
195 return Animation::None;
196}
197
198const std::string& ModelDef::getAnimationNameByIndex(int index) {
199 for (const auto& item : _animationIndex) {

Callers 4

hasAnimationMethod · 0.80
playMethod · 0.80
resumeMethod · 0.80
Model.cppFile · 0.80

Calls 2

findMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected